[cfe-commits] r75569 - /cfe/trunk/lib/CodeGen/CGExprConstant.cpp

Owen Anderson resistor at mac.com
Mon Jul 13 17:38:33 PDT 2009


Author: resistor
Date: Mon Jul 13 19:38:16 2009
New Revision: 75569

URL: http://llvm.org/viewvc/llvm-project?rev=75569&view=rev
Log:
Update for API change.

Modified:
    cfe/trunk/lib/CodeGen/CGExprConstant.cpp

Modified: cfe/trunk/lib/CodeGen/CGExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprConstant.cpp?rev=75569&r1=75568&r2=75569&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprConstant.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprConstant.cpp Mon Jul 13 19:38:16 2009
@@ -170,7 +170,7 @@
     unsigned byte = V.getLoBits(curBits).getZExtValue() << (fieldOffset & 7);
     do {
       llvm::Constant* byteC = llvm::ConstantInt::get(llvm::Type::Int8Ty, byte);
-      Elts[i] = llvm::ConstantExpr::getOr(Elts[i], byteC);
+      Elts[i] = CGM.getLLVMContext().getConstantExprOr(Elts[i], byteC);
       ++i;
       V = V.lshr(curBits);
       bitsToInsert -= curBits;





More information about the cfe-commits mailing list