[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Thu Dec 9 22:02:09 PST 2004
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.173 -> 1.174
---
Log message:
Actually malloc something other than a byte when allocating memory for an object
---
Diffs of the changes: (+1 -3)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.173 llvm-java/lib/Compiler/Compiler.cpp:1.174
--- llvm-java/lib/Compiler/Compiler.cpp:1.173 Thu Dec 9 00:14:47 2004
+++ llvm-java/lib/Compiler/Compiler.cpp Fri Dec 10 00:01:54 2004
@@ -2231,9 +2231,7 @@
const ClassInfo& ci = getClassInfo(cf);
const VTableInfo& vi = getVTableInfo(cf);
- Value* objRef = new MallocInst(ci.type,
- ConstantUInt::get(Type::UIntTy, 0),
- TMP, currentBB_);
+ Value* objRef = new MallocInst(ci.type, NULL, TMP, currentBB_);
Value* objBase = new CastInst(objRef,
PointerType::get(ClassInfo::ObjectBaseTy),
TMP, currentBB_);
More information about the llvm-commits
mailing list