[llvm] dc06572 - Fix warning introduced by 47eff645d8e873ba531014751c1c06a716a367e9
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 22 01:37:25 PST 2022
Author: David Sherwood
Date: 2022-02-22T09:37:16Z
New Revision: dc0657277f2ff53f4e3ab01d856bcc576867ba9e
URL: https://github.com/llvm/llvm-project/commit/dc0657277f2ff53f4e3ab01d856bcc576867ba9e
DIFF: https://github.com/llvm/llvm-project/commit/dc0657277f2ff53f4e3ab01d856bcc576867ba9e.diff
LOG: Fix warning introduced by 47eff645d8e873ba531014751c1c06a716a367e9
Added:
Modified:
llvm/lib/Analysis/ConstantFolding.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp
index 14b277a94ed7..2a9ff10c5c27 100644
--- a/llvm/lib/Analysis/ConstantFolding.cpp
+++ b/llvm/lib/Analysis/ConstantFolding.cpp
@@ -599,7 +599,7 @@ Constant *FoldReinterpretLoadFromConst(Constant *C, Type *LoadTy,
return nullptr;
// If we're not accessing anything in this constant, the result is undefined.
- if (Offset >= InitializerSize.getFixedValue())
+ if (Offset >= (int64_t)InitializerSize.getFixedValue())
return UndefValue::get(IntType);
unsigned char RawBytes[32] = {0};
More information about the llvm-commits
mailing list