[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sat May 22 21:10:01 PDT 2004
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.6 -> 1.7
---
Log message:
Fix pop2 compilation.
---
Diffs of the changes: (+5 -3)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.6 llvm-java/lib/Compiler/Compiler.cpp:1.7
--- llvm-java/lib/Compiler/Compiler.cpp:1.6 Sat May 22 20:24:43 2004
+++ llvm-java/lib/Compiler/Compiler.cpp Sat May 22 21:08:01 2004
@@ -350,10 +350,12 @@
case POP:
opStack_.pop();
break;
- case POP2:
- opStack_.pop();
- opStack_.pop();
+ case POP2: {
+ Value* v1 = opStack_.top(); opStack_.pop();
+ if (isOneSlotValue(v1))
+ opStack_.pop();
break;
+ }
case DUP:
opStack_.push(opStack_.top());
break;
More information about the llvm-commits
mailing list