aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 1eb5c2a..60a09e9 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -4819,14 +4819,11 @@ build_cp_library_fn_ptr (const char* name, tree type, int ecf_flags)
tree
push_library_fn (tree name, tree type, tree raises, int ecf_flags)
{
- tree fn;
-
if (raises)
type = build_exception_variant (type, raises);
- fn = build_library_fn (name, ERROR_MARK, type, ecf_flags);
- pushdecl_top_level (fn);
- return fn;
+ tree fn = build_library_fn (name, ERROR_MARK, type, ecf_flags);
+ return pushdecl_top_level (fn);
}
/* Like build_cp_library_fn, but also pushes the function so that it