[llvm-commits] [llvm-gcc-4.2] r41342 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

Bill Wendling isanbard at gmail.com
Thu Aug 23 15:07:41 PDT 2007


Author: void
Date: Thu Aug 23 17:07:41 2007
New Revision: 41342

URL: http://llvm.org/viewvc/llvm-project?rev=41342&view=rev
Log:
Reversing check. If a non-constant value is used, TREE_OVERFLOW barfs.

Modified:
    llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=41342&r1=41341&r2=41342&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Thu Aug 23 17:07:41 2007
@@ -302,7 +302,7 @@
 /// Always returns false for overflowed constants.
 bool isInt64(tree t, bool Unsigned) {
   if (HOST_BITS_PER_WIDE_INT == 64)
-    return !TREE_OVERFLOW (t) && host_integerp(t, Unsigned);
+    return host_integerp(t, Unsigned) && !TREE_OVERFLOW (t);
   else {
     assert(HOST_BITS_PER_WIDE_INT == 32 &&
            "Only 32- and 64-bit hosts supported!");





More information about the llvm-commits mailing list