diff options
author | Richard Biener <rguenther@suse.de> | 2018-10-01 07:48:51 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2018-10-01 07:48:51 +0000 |
commit | 796a2bb27466db5a151c06707b348cb2a705c514 (patch) | |
tree | dd92d5f47b395b78b77c27fa47fb8e2b6661f18b /gcc/tree-inline.c | |
parent | cb8c960e440d6a342fc8a388eee4be1ce81ae8ce (diff) | |
download | gcc-796a2bb27466db5a151c06707b348cb2a705c514.zip gcc-796a2bb27466db5a151c06707b348cb2a705c514.tar.gz gcc-796a2bb27466db5a151c06707b348cb2a705c514.tar.bz2 |
tree-inline.c (expand_call_inline): Store origin of fn in BLOCK_ABSTRACT_ORIGIN for the inline BLOCK.
2018-10-01 Richard Biener <rguenther@suse.de>
* tree-inline.c (expand_call_inline): Store origin of fn
in BLOCK_ABSTRACT_ORIGIN for the inline BLOCK.
* tree.c (block_ultimate_origin): Simplify and do some
checking.
From-SVN: r264734
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 2eac7b7..6b5ef36 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -4535,7 +4535,7 @@ expand_call_inline (basic_block bb, gimple *stmt, copy_body_data *id) if (loc == UNKNOWN_LOCATION) loc = BUILTINS_LOCATION; id->block = make_node (BLOCK); - BLOCK_ABSTRACT_ORIGIN (id->block) = fn; + BLOCK_ABSTRACT_ORIGIN (id->block) = DECL_ORIGIN (fn); BLOCK_SOURCE_LOCATION (id->block) = loc; prepend_lexical_block (gimple_block (stmt), id->block); } |