diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-05-06 21:09:44 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-05-06 21:09:44 +0000 |
commit | 64c92844118f740cb08749f7ca3e0a8f2ef99c85 (patch) | |
tree | bd30a4e952736eff880431dbdcc9902bd3ea2b69 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | d26fc5e0131a0f75012c2b490651d2928ff0211d (diff) | |
download | bcm5719-llvm-64c92844118f740cb08749f7ca3e0a8f2ef99c85.tar.gz bcm5719-llvm-64c92844118f740cb08749f7ca3e0a8f2ef99c85.zip |
It's valid to take the blockaddress of a different function, so remove this
assert in the bitcode writer. No change needed because the ValueEnumerator holds
a whole-module numbering anyhow. Fixes PR9857!
llvm-svn: 131016
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index e34137f6155..e652e082d16 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -871,8 +871,6 @@ static void WriteConstants(unsigned FirstVal, unsigned LastVal, break; } } else if (const BlockAddress *BA = dyn_cast<BlockAddress>(C)) { - assert(BA->getFunction() == BA->getBasicBlock()->getParent() && - "Malformed blockaddress"); Code = bitc::CST_CODE_BLOCKADDRESS; Record.push_back(VE.getTypeID(BA->getFunction()->getType())); Record.push_back(VE.getValueID(BA->getFunction())); |