projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97baedc
)
Workaround or a VS miscompilation bug
author
Chris Lattner
<sabre@nondot.org>
Tue, 8 Jun 2004 23:21:39 +0000
(23:21 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 8 Jun 2004 23:21:39 +0000
(23:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14078
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Constants.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Constants.cpp
b/lib/VMCore/Constants.cpp
index d3a6a2502adccfc9c8333420fa60715b55ba3d39..3e5cd78d44203fba8c3fd392bd782e1844a9c8f0 100644
(file)
--- 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...
}