Commit ddb8401a by Jason Merrill

revert accidental checkin

From-SVN: r142869
parent 3feb128f
...@@ -2348,12 +2348,12 @@ write_expression (tree expr) ...@@ -2348,12 +2348,12 @@ write_expression (tree expr)
case CAST_EXPR: case CAST_EXPR:
write_type (TREE_TYPE (expr)); write_type (TREE_TYPE (expr));
/* There is no way to mangle a zero-operand cast like
"T()". */
if (!TREE_OPERAND (expr, 0)) if (!TREE_OPERAND (expr, 0))
sorry ("zero-operand casts cannot be mangled due to a defect " /* "T()" is mangled as "T(void)". */
"in the C++ ABI"); write_char ('v');
else if (list_length (TREE_OPERAND (expr, 0)) > 1) else if (list_length (TREE_OPERAND (expr, 0)) > 1)
/* FIXME the above hack for T() needs to be replaced with
something more general. */
sorry ("mangling function-style cast with more than one argument"); sorry ("mangling function-style cast with more than one argument");
else else
write_expression (TREE_VALUE (TREE_OPERAND (expr, 0))); write_expression (TREE_VALUE (TREE_OPERAND (expr, 0)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment