Fix a use of an invalidated iterator in the case where there are multiple
authorDan Gohman <gohman@apple.com>
Mon, 23 Nov 2009 16:13:39 +0000 (16:13 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 23 Nov 2009 16:13:39 +0000 (16:13 +0000)
commit8f3817f505029e97d28c54548069d5bbaa9d5527
treef0b4159d98abf42d6fff33005a9f1ce700e007ba
parente8e01b600cd377504e5288a31152b1db4b8477b1
Fix a use of an invalidated iterator in the case where there are multiple
adjacent uses of a dead basic block from the same user. This fixes PR5596.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89658 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SCCP.cpp
test/Transforms/IPConstantProp/user-with-multiple-uses.ll [new file with mode: 0644]