[llvm-commits] [dragonegg] r158257 - /dragonegg/trunk/src/Debug.cpp

Duncan Sands baldrick at free.fr
Fri Jun 8 19:51:31 PDT 2012


Author: baldrick
Date: Fri Jun  8 21:51:31 2012
New Revision: 158257

URL: http://llvm.org/viewvc/llvm-project?rev=158257&view=rev
Log:
Since signed vs unsigned doesn't matter here, just grab the GCC constant as a
bunch of bits.  Should fix the buildbots (testcase already in the compilator
testsuite).

Modified:
    dragonegg/trunk/src/Debug.cpp

Modified: dragonegg/trunk/src/Debug.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Debug.cpp?rev=158257&r1=158256&r2=158257&view=diff
==============================================================================
--- dragonegg/trunk/src/Debug.cpp (original)
+++ dragonegg/trunk/src/Debug.cpp Fri Jun  8 21:51:31 2012
@@ -677,7 +677,7 @@
       tree EnumValue = TREE_VALUE(Link);
       if (isa<CONST_DECL>(EnumValue))
         EnumValue = DECL_INITIAL(EnumValue);
-      uint64_t Value = getInt64(EnumValue, true);
+      uint64_t Value = getIntegerValue(EnumValue).getZExtValue();
       const char *EnumName = IDENTIFIER_POINTER(TREE_PURPOSE(Link));
       Elements.push_back(DebugFactory.CreateEnumerator(EnumName, Value));
     }





More information about the llvm-commits mailing list