diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-14 00:38:16 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-14 00:38:16 +0000 |
commit | 2571eb645342e8c9092aabb6cb447f0ecda68832 (patch) | |
tree | 25602cca8f86bec7dc36b9700472d9c977849dae /clang/lib/CodeGen/CGExprConstant.cpp | |
parent | f2c9922f5052cd3cbfe7cacf5f8ecef5c9781237 (diff) | |
download | bcm5719-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.cpp | 2 |
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; |