[PM] Fix a bug where we didn't properly clear the list map when the list
authorChandler Carruth <chandlerc@gmail.com>
Mon, 21 Apr 2014 11:11:54 +0000 (11:11 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 21 Apr 2014 11:11:54 +0000 (11:11 +0000)
commit6060969b9b8966377cffdedb65b326420e6af76a
tree4deaf7eae9ebaac5e29a3bf9598d39b332de148d
parent2b3433557f578853cee3b0b1335c9c304e33b3de
[PM] Fix a bug where we didn't properly clear the list map when the list
became empty. This would manifest later as an assert failure due to
a non-empty list map but an empty result map. This doesn't easily
manifest with just the module pass manager and the function pass
manager, but the next commit will add the CGSCC pass manager that hits
this assert immediately.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206744 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/PassManager.cpp