[PM] Fix a silly bug in my recent update to the CG update logic.
authorChandler Carruth <chandlerc@gmail.com>
Wed, 12 Jul 2017 09:08:11 +0000 (09:08 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 12 Jul 2017 09:08:11 +0000 (09:08 +0000)
commit051bdb0b22a3eba1d8eb97f071195a13559a965a
treedbef8d7f24de3d5eae48f5dba53f03942cd80610
parent21014df5e091f5eca12ea1f7d538026d7e7d1adc
[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
llvm/lib/Analysis/CGSCCPassManager.cpp
llvm/unittests/Analysis/CGSCCPassManagerTest.cpp