summaryrefslogtreecommitdiff
path: root/gcc/ipa-icf.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-10-22 15:10:02 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-10-22 15:10:02 +0000
commit9612a39a41f7d66a303c0b6fa4e76aa739d12b9a (patch)
tree86201dbc96ee7f5cc4159e184e86abb3de8a87ea /gcc/ipa-icf.c
parent893479def2f2b98d16e7311fe3bfff58ed003467 (diff)
downloadgcc-9612a39a41f7d66a303c0b6fa4e76aa739d12b9a.tar.gz
Reset global state ipa-icf.c:optimizer
gcc/ * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done. From-SVN: r216561
Diffstat (limited to 'gcc/ipa-icf.c')
-rw-r--r--gcc/ipa-icf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c
index 0e6bd9a6073..d1238a4ce8b 100644
--- a/gcc/ipa-icf.c
+++ b/gcc/ipa-icf.c
@@ -2320,6 +2320,7 @@ ipa_icf_driver (void)
optimizer->unregister_hooks ();
delete optimizer;
+ optimizer = NULL;
return 0;
}