Skip to content

Commit 1433bb4

Browse files
committed
fix: correct a compiler error that could lead to Argon crashing during program execution
1 parent 0fb969e commit 1433bb4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

argon/lang/compiler2/transl_unit.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ void TranslationUnit::Emit(vm::OpCode op, int arg, BasicBlock *dest, const scann
293293
case vm::OpCode::MKSTRUCT:
294294
case vm::OpCode::MKTP:
295295
case vm::OpCode::MKTRAIT:
296-
case vm::OpCode::POPGT:
297296
this->DecrementStack(arg);
298297
break;
299298
default:

argon/vm/opcode.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ namespace argon::vm {
110110
constexpr short StackChange[] = {
111111
-1,
112112
0,
113-
1,
113+
0,
114114
-1,
115115
-1,
116116
0,
@@ -186,7 +186,7 @@ namespace argon::vm {
186186
-1,
187187
-1,
188188
0,
189-
1,
189+
0,
190190
-2,
191191
-1,
192192
0,

0 commit comments

Comments
 (0)