We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc058a3 commit 7349864Copy full SHA for 7349864
llvm/include/llvm/ADT/PointerIntPair.h
@@ -206,11 +206,10 @@ struct PointerIntPairInfo {
206
}
207
208
static intptr_t updateInt(intptr_t OrigValue, intptr_t Int) {
209
- intptr_t IntWord = static_cast<intptr_t>(Int);
210
- assert((IntWord & ~IntMask) == 0 && "Integer too large for field");
+ assert((Int & ~IntMask) == 0 && "Integer too large for field");
211
212
// Preserve all bits other than the ones we are updating.
213
- return (OrigValue & ~ShiftedIntMask) | IntWord << IntShift;
+ return (OrigValue & ~ShiftedIntMask) | Int << IntShift;
214
215
};
216
0 commit comments