Commit 050dcb6a by Martin Liska Committed by Martin Liska

Fix use-after-scope error.

2017-10-11  Martin Liska  <mliska@suse.cz>

	* print-rtl.c (print_insn): Move declaration of idbuf
	to same scope as name.

From-SVN: r253639
parent ed89e76a
2017-10-11 Martin Liska <mliska@suse.cz> 2017-10-11 Martin Liska <mliska@suse.cz>
* print-rtl.c (print_insn): Move declaration of idbuf
to same scope as name.
2017-10-11 Martin Liska <mliska@suse.cz>
Revert r253637: Revert r253637:
PR sanitizer/82484 PR sanitizer/82484
...@@ -1792,11 +1792,11 @@ print_insn (pretty_printer *pp, const rtx_insn *x, int verbose) ...@@ -1792,11 +1792,11 @@ print_insn (pretty_printer *pp, const rtx_insn *x, int verbose)
case DEBUG_INSN: case DEBUG_INSN:
{ {
const char *name = "?"; const char *name = "?";
char idbuf[32];
if (DECL_P (INSN_VAR_LOCATION_DECL (x))) if (DECL_P (INSN_VAR_LOCATION_DECL (x)))
{ {
tree id = DECL_NAME (INSN_VAR_LOCATION_DECL (x)); tree id = DECL_NAME (INSN_VAR_LOCATION_DECL (x));
char idbuf[32];
if (id) if (id)
name = IDENTIFIER_POINTER (id); name = IDENTIFIER_POINTER (id);
else if (TREE_CODE (INSN_VAR_LOCATION_DECL (x)) else if (TREE_CODE (INSN_VAR_LOCATION_DECL (x))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment