Skip to content

Commit fe525c6

Browse files
committed
fix(tacinstr.py): InstrKind remove LOAD_PARAMS and CALL type
1 parent 49891fa commit fe525c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/tac/tacinstr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def accept(self, v: TACVisitor) -> None:
207207

208208
class Call(TACInstr):
209209
def __init__(self, func: FuncLabel, args: List[Temp], ret: Temp) -> None:
210-
super().__init__(InstrKind.CALL, [ret], [], func)
210+
super().__init__(InstrKind.SEQ, [ret], [], func)
211211
self.func = func
212212
self.args = args
213213
self.ret = ret
@@ -222,7 +222,7 @@ def accept(self, v: TACVisitor) -> None:
222222

223223
class LoadParams(TACInstr):
224224
def __init__(self, dsts: List[Temp]) -> None:
225-
super().__init__(InstrKind.LOAD_PARAMS, dsts, [], None)
225+
super().__init__(InstrKind.SEQ, dsts, [], None)
226226
self.num_args = len(dsts)
227227

228228
def __str__(self) -> str:

0 commit comments

Comments
 (0)