[vmkit-commits] [vmkit] r69603 - /vmkit/trunk/lib/JnJVM/Compiler/JavaJIT.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Mon Apr 20 09:33:14 PDT 2009


Author: geoffray
Date: Mon Apr 20 11:33:13 2009
New Revision: 69603

URL: http://llvm.org/viewvc/llvm-project?rev=69603&view=rev
Log:
Set the correct constant type in monitorEnter.


Modified:
    vmkit/trunk/lib/JnJVM/Compiler/JavaJIT.cpp

Modified: vmkit/trunk/lib/JnJVM/Compiler/JavaJIT.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/Compiler/JavaJIT.cpp?rev=69603&r1=69602&r2=69603&view=diff

==============================================================================
--- vmkit/trunk/lib/JnJVM/Compiler/JavaJIT.cpp (original)
+++ vmkit/trunk/lib/JnJVM/Compiler/JavaJIT.cpp Mon Apr 20 11:33:13 2009
@@ -424,7 +424,7 @@
   // The compare and swap did not pass, look if it's a thin lock
   Value* isThin = BinaryOperator::CreateAnd(atomic, module->constantFatMask, "",
                                             currentBlock);
-  cmp = new ICmpInst(ICmpInst::ICMP_EQ, isThin, module->constantZero, "",
+  cmp = new ICmpInst(ICmpInst::ICMP_EQ, isThin, module->constantPtrZero, "",
                      currentBlock);
   
   BranchInst::Create(ThinLockBB, FatLockBB, cmp, currentBlock);





More information about the vmkit-commits mailing list