summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-14 00:38:16 +0000
committerOwen Anderson <resistor@mac.com>2009-07-14 00:38:16 +0000
commit2571eb645342e8c9092aabb6cb447f0ecda68832 (patch)
tree25602cca8f86bec7dc36b9700472d9c977849dae /clang/lib/CodeGen/CGExprConstant.cpp
parentf2c9922f5052cd3cbfe7cacf5f8ecef5c9781237 (diff)
downloadbcm5719-llvm-2571eb645342e8c9092aabb6cb447f0ecda68832.tar.gz
bcm5719-llvm-2571eb645342e8c9092aabb6cb447f0ecda68832.zip
Update for API change.
llvm-svn: 75569
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprConstant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp
index a8e700678f8..57427eef2b8 100644
--- a/clang/lib/CodeGen/CGExprConstant.cpp
+++ b/clang/lib/CodeGen/CGExprConstant.cpp
@@ -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;
OpenPOWER on IntegriCloud