[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp

Alkis Evlogimenos alkis at cs.uiuc.edu
Sat Mar 19 05:15:08 PST 2005



Changes in directory llvm-java/lib/Compiler:

Compiler.cpp updated: 1.233 -> 1.234
---
Log message:

Return the casted array type not the return value of the setVtable
function.


---
Diffs of the changes:  (+3 -3)

 Compiler.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.233 llvm-java/lib/Compiler/Compiler.cpp:1.234
--- llvm-java/lib/Compiler/Compiler.cpp:1.233	Sat Mar 19 07:05:54 2005
+++ llvm-java/lib/Compiler/Compiler.cpp	Sat Mar 19 07:14:57 2005
@@ -2294,12 +2294,12 @@
       Value* lengthPtr = getArrayLengthPtr(objRef);
       new StoreInst(count, lengthPtr, ip);
 
-      new CastInst(objRef, PointerType::get(ci.getType()), TMP, ip);
-
       // Install the vtable pointer.
       Value* objBase = new CastInst(objRef, ObjectBaseRefTy, TMP, ip);
       Value* vtable = new CastInst(vi.vtable, VTableBaseRefTy, TMP, ip);
-      return new CallInst(setVtable_, objBase, vtable, "", ip);
+      new CallInst(setVtable_, objBase, vtable, "", ip);
+
+      return new CastInst(objRef, PointerType::get(ci.getType()), TMP, ip);
     }
 
     void do_newarray(JType type) {






More information about the llvm-commits mailing list