[llvm-commits] [dragonegg] r127547 - /dragonegg/trunk/Constants.cpp

Duncan Sands baldrick at free.fr
Sat Mar 12 09:16:34 PST 2011


Author: baldrick
Date: Sat Mar 12 11:16:34 2011
New Revision: 127547

URL: http://llvm.org/viewvc/llvm-project?rev=127547&view=rev
Log:
Nowadays a STRING_CST is constant (modern GCC does not support
writable strings).

Modified:
    dragonegg/trunk/Constants.cpp

Modified: dragonegg/trunk/Constants.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/Constants.cpp?rev=127547&r1=127546&r2=127547&view=diff
==============================================================================
--- dragonegg/trunk/Constants.cpp (original)
+++ dragonegg/trunk/Constants.cpp Sat Mar 12 11:16:34 2011
@@ -935,8 +935,7 @@
 }
 
 Constant *ConvertConstant(tree exp) {
-  assert((TREE_CONSTANT(exp) || TREE_CODE(exp) == STRING_CST) &&
-         "Isn't a constant!");
+  assert(TREE_CONSTANT(exp) && "Isn't a constant!");
   switch (TREE_CODE(exp)) {
   case FDESC_EXPR:    // Needed on itanium
   default:





More information about the llvm-commits mailing list