[llvm-commits] [dragonegg] r131966 - /dragonegg/trunk/src/Convert.cpp

Duncan Sands baldrick at free.fr
Tue May 24 08:08:22 PDT 2011


Author: baldrick
Date: Tue May 24 10:08:22 2011
New Revision: 131966

URL: http://llvm.org/viewvc/llvm-project?rev=131966&view=rev
Log:
Handle all simple constants here.  The case of INTEGER_CST came up as
part of a VIEW_CONVERT_EXPR produced by the GCC optimizers.

Modified:
    dragonegg/trunk/src/Convert.cpp

Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=131966&r1=131965&r2=131966&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Tue May 24 10:08:22 2011
@@ -1283,8 +1283,10 @@
     break;
   }
   case COMPLEX_CST:
+  case INTEGER_CST:
   case REAL_CST:
-  case STRING_CST: {
+  case STRING_CST:
+  case VECTOR_CST: {
     Value *Ptr = AddressOf(exp);
     LV = LValue(Ptr, get_constant_alignment(exp) / 8);
     break;





More information about the llvm-commits mailing list