[llvm-commits] Support VIEW_CONVERT_EXPR in TreeConstantToLLVM::Convert

Duncan Sands baldrick at free.fr
Mon Jan 15 07:11:08 PST 2007


Ignore the type change - constants don't care.

Index: gcc/llvm-convert.cpp
===================================================================
--- gcc/llvm-convert.cpp	(revision 248)
+++ gcc/llvm-convert.cpp	(working copy)
@@ -4260,6 +4380,7 @@
   case PLUS_EXPR:
   case MINUS_EXPR:    return ConvertBinOp_CST(exp);
   case CONSTRUCTOR:   return ConvertCONSTRUCTOR(exp);
+  case VIEW_CONVERT_EXPR: return Convert(TREE_OPERAND(exp, 0));
   case ADDR_EXPR:     
     return ConstantExpr::getBitCast(EmitLV(TREE_OPERAND(exp, 0)),
                                  ConvertType(TREE_TYPE(exp)));



More information about the llvm-commits mailing list