summaryrefslogtreecommitdiff
path: root/gcc/lto/lto-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/lto/lto-lang.c')
-rw-r--r--gcc/lto/lto-lang.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/lto/lto-lang.c b/gcc/lto/lto-lang.c
index d469fb93b6a..4a5f6fe8ab5 100644
--- a/gcc/lto/lto-lang.c
+++ b/gcc/lto/lto-lang.c
@@ -499,9 +499,7 @@ def_builtin_1 (enum built_in_function fncode, const char *name,
add_builtin_function (libname, libtype, fncode, fnclass,
NULL, fnattrs);
- built_in_decls[(int) fncode] = decl;
- if (implicit_p)
- implicit_built_in_decls[(int) fncode] = decl;
+ set_builtin_decl (fncode, decl, implicit_p);
}