[vmkit-commits] [vmkit] r91445 - /vmkit/trunk/lib/JnJVM/Compiler/JavaAOTCompiler.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Tue Dec 15 12:12:41 PST 2009


Author: geoffray
Date: Tue Dec 15 14:12:41 2009
New Revision: 91445

URL: http://llvm.org/viewvc/llvm-project?rev=91445&view=rev
Log:
Use Add instead of Or becode the assembler does not seem to like '|'.


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

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

==============================================================================
--- vmkit/trunk/lib/JnJVM/Compiler/JavaAOTCompiler.cpp (original)
+++ vmkit/trunk/lib/JnJVM/Compiler/JavaAOTCompiler.cpp Tue Dec 15 14:12:41 2009
@@ -1580,7 +1580,7 @@
      
         Constant* CI =
           ConstantExpr::getPtrToInt(GV, Type::getInt32Ty(getGlobalContext()));
-        CI = ConstantExpr::getOr(CI, JavaIntrinsics.constantOne);
+        CI = ConstantExpr::getAdd(CI, JavaIntrinsics.constantOne);
         CI = ConstantExpr::getIntToPtr(CI, PTy);
         IElemts.push_back(CI);
       } else {





More information about the vmkit-commits mailing list