]> granicus.if.org Git - clang/commitdiff
Update for API change.
authorOwen Anderson <resistor@mac.com>
Tue, 14 Jul 2009 00:38:16 +0000 (00:38 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 14 Jul 2009 00:38:16 +0000 (00:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75569 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExprConstant.cpp

index a8e700678f85b1f494e39aa30641f508383b69c5..57427eef2b88df07cbbb5d2cc15ff0d5911376b7 100644 (file)
@@ -170,7 +170,7 @@ public:
     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;