[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Wed Mar 30 21:08:58 PST 2005
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.267 -> 1.268
---
Log message:
Fix bug introduced in previous commit.
---
Diffs of the changes: (+2 -0)
Compiler.cpp | 2 ++
1 files changed, 2 insertions(+)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.267 llvm-java/lib/Compiler/Compiler.cpp:1.268
--- llvm-java/lib/Compiler/Compiler.cpp:1.267 Tue Mar 29 11:37:08 2005
+++ llvm-java/lib/Compiler/Compiler.cpp Wed Mar 30 23:08:47 2005
@@ -1487,6 +1487,7 @@
void do_getstatic(unsigned index) {
const VMField* field = class_->getField(index);
+ emitStaticInitializers(field->getParent()->getClassFile());
Value* v = new LoadInst(field->getGlobal(), TMP, currentBB_);
push(v);
@@ -1494,6 +1495,7 @@
void do_putstatic(unsigned index) {
const VMField* field = class_->getField(index);
+ emitStaticInitializers(field->getParent()->getClassFile());
Value* v = pop(field->getClass()->getType());
new StoreInst(v, field->getGlobal(), currentBB_);
More information about the llvm-commits
mailing list