[llvm-commits] Support VIEW_CONVERT_EXPR in TreeConstantToLLVM::Convert
Chris Lattner
clattner at apple.com
Mon Jan 15 09:34:27 PST 2007
Applied, thanks!
-Chris
On Jan 15, 2007, at 7:11 AM, Duncan Sands wrote:
> 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)));
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list