diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-08 23:21:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-08 23:21:39 +0000 |
commit | 2a5020150c65787ff65ef633511d9ab0ba77e7da (patch) | |
tree | 8e8e7e9c6470e26b663e3f3f93dda77a9e532ed8 /lib/VMCore/Constants.cpp | |
parent | 97baedc8c5b9e24f90a3bde98ec2c05e1713e5ed (diff) |
Workaround or a VS miscompilation bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Constants.cpp')
-rw-r--r-- | lib/VMCore/Constants.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index d3a6a2502a..3e5cd78d44 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -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... } |