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 | 74248512eb391dd990fcacb7e6163b2c2220fb68 (patch) | |
| tree | d2bb11fb34ede4d4b7dd2765a3888a1992208fde /llvm/lib | |
| parent | 8b52a68356c3128aa8640ed27b47026dc5e9b07b (diff) | |
| download | bcm5719-llvm-74248512eb391dd990fcacb7e6163b2c2220fb68.tar.gz bcm5719-llvm-74248512eb391dd990fcacb7e6163b2c2220fb68.zip | |
Workaround or a VS miscompilation bug
llvm-svn: 14078
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/Constants.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp index d3a6a2502ad..3e5cd78d442 100644 --- a/llvm/lib/VMCore/Constants.cpp +++ b/llvm/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... } |

