mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 06:16:06 +00:00
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:
parent
5b3dffefa2
commit
922096cc5e
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user