commit | b7219f9e807c2a8e91cd64be8314341fea6e92ad | [log] [tgz] |
---|---|---|
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | Fri Jul 13 16:32:31 2018 +0000 |
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | Fri Jul 13 16:32:31 2018 +0000 |
tree | 0bb5fe2a14557f683641f879307c0e07e90e2861 | |
parent | a97ad691465db8d768623c63e597bedaedb25619 [diff] |
Revert "CallGraphSCCPass: iterate over all functions." This reverts commit r336419: use-after-free on CallGraph::FunctionMap elements due to the use of a stale iterator in CGPassManager::runOnModule. The iterator may be invalidated if a pass removes a function, ex.: llvm::LegacyInlinerBase::inlineCalls inlineCallsImpl llvm::CallGraph::removeFunctionFromModule git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337018 91177308-0d34-0410-b5e6-96231b3b80d8