BitcodeReader: Correctly insert blockaddress constant referring to a already parsed...
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 21 Sep 2012 14:34:31 +0000 (14:34 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 21 Sep 2012 14:34:31 +0000 (14:34 +0000)
commit122f5e5a5b04e3c364d13913c14ee14f9b7ba387
tree764b03dd38d35679b3aa068a6fc4a88e5cb560f9
parent01fa41a106ed0ff86c3b9ffe0843679211bf487c
BitcodeReader: Correctly insert blockaddress constant referring to a already parsed function.

We inserted a placeholder that was never replaced because the function was
already visited. Assert that all placeholders have been resolved when tearing
down the bitcode reader.

Fixes PR13895.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164369 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp
test/Bitcode/blockaddress.ll