aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2004-06-01 11:53:07 -0400
committerJason Merrill <jason@gcc.gnu.org>2004-06-01 11:53:07 -0400
commit3ff2f9d1d1316c01f2880e6408116cdc5e928ae0 (patch)
tree09aa51f673902473c191776109dfa8498e98cf32 /gcc
parent43daf8ffa83f013ccc2a7db8845375df73f5556b (diff)
downloadgcc-3ff2f9d1d1316c01f2880e6408116cdc5e928ae0.zip
gcc-3ff2f9d1d1316c01f2880e6408116cdc5e928ae0.tar.gz
gcc-3ff2f9d1d1316c01f2880e6408116cdc5e928ae0.tar.bz2
revert accidental checkin
From-SVN: r82552
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/call.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 185c037..ecace2d 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -4326,20 +4326,18 @@ convert_like_real (conversion *convs, tree expr, tree fn, int argnum,
}
/* Build a call to __builtin_trap which can be used as an expression of
- type TYPE. This looks like *(__builtin_trap(), (TYPE*)NULL). */
+ type TYPE. */
static tree
call_builtin_trap (tree type)
{
tree fn = implicit_built_in_decls[BUILT_IN_TRAP];
- tree t;
my_friendly_assert (fn != NULL, 20030927);
fn = build_call (fn, NULL_TREE);
- t = convert (build_pointer_type (type), null_node);
- t = build (COMPOUND_EXPR, TREE_TYPE (t), fn, t);
- t = build_indirect_ref (t, NULL);
- return t;
+ fn = build (COMPOUND_EXPR, type, fn, error_mark_node);
+ fn = force_target_expr (type, fn);
+ return fn;
}
/* ARG is being passed to a varargs function. Perform any conversions