mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Workaround or a VS miscompilation bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14078 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
97baedc8c5
commit
2a5020150c
@ -442,7 +442,7 @@ bool ConstantSInt::isValueValidForType(const Type *Ty, int64_t Val) {
|
||||
case Type::ShortTyID:
|
||||
return (Val <= INT16_MAX && Val >= INT16_MIN);
|
||||
case Type::IntTyID:
|
||||
return (Val <= INT32_MAX && Val >= INT32_MIN);
|
||||
return (Val <= int(INT32_MAX) && Val >= int(INT32_MIN));
|
||||
case Type::LongTyID:
|
||||
return true; // This is the largest type...
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user