aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-10-11 14:30:03 +0200
committerMartin Liska <marxin@gcc.gnu.org>2017-10-11 12:30:03 +0000
commit050dcb6ad8de794e46d5eb377083fb8b9acf642e (patch)
treeff02bb64dad4b5a848435e48e2b552da9dbf30ac /gcc/print-rtl.c
parented89e76a35f8dc067b747a57a143d2d74516afc4 (diff)
downloadgcc-050dcb6ad8de794e46d5eb377083fb8b9acf642e.zip
gcc-050dcb6ad8de794e46d5eb377083fb8b9acf642e.tar.gz
gcc-050dcb6ad8de794e46d5eb377083fb8b9acf642e.tar.bz2
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
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r--gcc/print-rtl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index 79ec463..28d9986 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -1792,11 +1792,11 @@ print_insn (pretty_printer *pp, const rtx_insn *x, int verbose)
case DEBUG_INSN:
{
const char *name = "?";
+ char idbuf[32];
if (DECL_P (INSN_VAR_LOCATION_DECL (x)))
{
tree id = DECL_NAME (INSN_VAR_LOCATION_DECL (x));
- char idbuf[32];
if (id)
name = IDENTIFIER_POINTER (id);
else if (TREE_CODE (INSN_VAR_LOCATION_DECL (x))