diff options
author | Wang Liushuai <wangliushuai@bytedance.com> | 2021-05-24 10:09:29 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-05-24 10:09:54 +0200 |
commit | 0f3cd532fa02d1787960bdd380d0a3f78343f024 (patch) | |
tree | aa4c6b5ea1836a360b960f8ab3a8d31a39680a26 /gcc | |
parent | 9d38e096c5e3b1c2233b28d0e6ff8ee81517af56 (diff) | |
download | gcc-0f3cd532fa02d1787960bdd380d0a3f78343f024.zip gcc-0f3cd532fa02d1787960bdd380d0a3f78343f024.tar.gz gcc-0f3cd532fa02d1787960bdd380d0a3f78343f024.tar.bz2 |
Do not load the thunk symbols.
gcc/lto/ChangeLog:
* lto-dump.c (get_size): Fix the NPD error about the thunk symbol.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/lto/lto-dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/lto/lto-dump.c b/gcc/lto/lto-dump.c index 8344d3e..3586e20 100644 --- a/gcc/lto/lto-dump.c +++ b/gcc/lto/lto-dump.c @@ -122,7 +122,7 @@ public: cgraph_node *cnode = dyn_cast<cgraph_node *> (node); gcc_assert (cnode); - return (cnode->definition && !cnode->alias) + return (cnode->definition && !cnode->thunk && !cnode->alias) ? n_basic_blocks_for_fn (DECL_STRUCT_FUNCTION (cnode->decl)) : 0; } |