Skip to content

Commit 5f5b687

Browse files
david-armtstellar
authored andcommitted
Fix warning introduced by 47eff64
(cherry picked from commit dc06572)
1 parent 64534d2 commit 5f5b687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/ConstantFolding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ Constant *FoldReinterpretLoadFromConst(Constant *C, Type *LoadTy,
599599
return nullptr;
600600

601601
// If we're not accessing anything in this constant, the result is undefined.
602-
if (Offset >= InitializerSize.getFixedValue())
602+
if (Offset >= (int64_t)InitializerSize.getFixedValue())
603603
return UndefValue::get(IntType);
604604

605605
unsigned char RawBytes[32] = {0};

0 commit comments

Comments
 (0)