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 | fc494ff95e011400e0d76a3cb52be453c9d2c15b (patch) | |
tree | c8c323c116bab426fd52c493d67b55c9c7cf69a7 /lib/CodeGen/CGExprConstant.cpp | |
parent | 6f9b3a4d7143362d3c2ac1f843d76971799f5b97 (diff) |
Update for API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index a8e700678f..57427eef2b 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/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; |