summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-02-12 21:49:34 +0000
committerDan Gohman <gohman@apple.com>2008-02-12 21:49:34 +0000
commit922096cc5ecd080a7f39d43f253f4b3438ffe82d (patch)
tree69443ec681508e221bdbab9342b3c15ba6a984fe
parent5b3dffefa2afd8de96ab5cb08a8ac3514d973550 (diff)
downloadbcm5719-llvm-922096cc5ecd080a7f39d43f253f4b3438ffe82d.tar.gz
bcm5719-llvm-922096cc5ecd080a7f39d43f253f4b3438ffe82d.zip
Adjust for the API change to APInt::getBitsSet.
People more familiar with clang than me, please review this. llvm-svn: 47033
-rw-r--r--clang/CodeGen/CGExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/CodeGen/CGExpr.cpp b/clang/CodeGen/CGExpr.cpp
index 6baf17fb105..64f2697e4df 100644
--- a/clang/CodeGen/CGExpr.cpp
+++ b/clang/CodeGen/CGExpr.cpp
@@ -285,7 +285,7 @@ void CodeGenFunction::EmitStoreThroughBitfieldLValue(RValue Src, LValue Dst,
llvm::Constant *Mask = llvm::ConstantInt::get(
llvm::APInt::getBitsSet(EltTySize, StartBit,
- StartBit + BitfieldSize - 1));
+ StartBit + BitfieldSize));
// Mask out any bits that shouldn't be set in the result.
NewVal = Builder.CreateAnd(NewVal, Mask, "tmp");
OpenPOWER on IntegriCloud