Adjust for the API change to APInt::getBitsSet.

People more familiar with clang than me, please review this.

llvm-svn: 47033
This commit is contained in:
Dan Gohman 2008-02-12 21:49:34 +00:00
parent 5b3dffefa2
commit 922096cc5e

View File

@ -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");