summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/CGSCCPassManager.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2017-07-12 09:08:11 +0000
committerChandler Carruth <chandlerc@gmail.com>2017-07-12 09:08:11 +0000
commit051bdb0b22a3eba1d8eb97f071195a13559a965a (patch)
treedbef8d7f24de3d5eae48f5dba53f03942cd80610 /llvm/lib/Analysis/CGSCCPassManager.cpp
parent21014df5e091f5eca12ea1f7d538026d7e7d1adc (diff)
downloadbcm5719-llvm-051bdb0b22a3eba1d8eb97f071195a13559a965a.tar.gz
bcm5719-llvm-051bdb0b22a3eba1d8eb97f071195a13559a965a.zip
[PM] Fix a silly bug in my recent update to the CG update logic.
I used the wrong variable to update. This was even covered by a unittest I wrote, and the comments for the unittest were correct (if confusing) but the test itself just matched the buggy behavior. =[ llvm-svn: 307764
Diffstat (limited to 'llvm/lib/Analysis/CGSCCPassManager.cpp')
-rw-r--r--llvm/lib/Analysis/CGSCCPassManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/CGSCCPassManager.cpp b/llvm/lib/Analysis/CGSCCPassManager.cpp
index 9db1e95ece7..3ddefc6520a 100644
--- a/llvm/lib/Analysis/CGSCCPassManager.cpp
+++ b/llvm/lib/Analysis/CGSCCPassManager.cpp
@@ -373,7 +373,7 @@ incorporateNewSCCRange(const SCCRangeT &NewSCCRange, LazyCallGraph &G,
// Ensure new SCCs' function analyses are updated.
if (NeedFAMProxy)
- updateNewSCCFunctionAnalyses(*C, G, AM);
+ updateNewSCCFunctionAnalyses(NewC, G, AM);
// Also propagate a normal invalidation to the new SCC as only the current
// will get one from the pass manager infrastructure.
OpenPOWER on IntegriCloud