Skip to content
Snippets Groups Projects
Commit 73ad73e2 authored by Chris Lattner's avatar Chris Lattner
Browse files

We might as well delete the known-dead global sooner rather than later since

we know it is dead.

llvm-svn: 16855
parent 84e5ff76
No related branches found
No related tags found
No related merge requests found
......@@ -316,6 +316,8 @@ static GlobalVariable *SRAGlobal(GlobalVariable *GV) {
CE->destroyConstant();
}
// Delete the old global, now that it is dead.
Globals.erase(GV);
++NumSRA;
return NewGlobals[0];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment