[llvm-commits] CVS: llvm/lib/VMCore/Constants.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jun 8 18:27:02 PDT 2004
Changes in directory llvm/lib/VMCore:
Constants.cpp updated: 1.89 -> 1.90
---
Log message:
Workaround or a VS miscompilation bug
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/VMCore/Constants.cpp
diff -u llvm/lib/VMCore/Constants.cpp:1.89 llvm/lib/VMCore/Constants.cpp:1.90
--- llvm/lib/VMCore/Constants.cpp:1.89 Fri Jun 4 18:52:36 2004
+++ llvm/lib/VMCore/Constants.cpp Tue Jun 8 18:21:39 2004
@@ -442,7 +442,7 @@
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...
}
More information about the llvm-commits
mailing list