diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-01 01:27:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-01 01:27:45 +0000 |
commit | aa99c94e2a75e86381bcc45de61c11725a1484d6 (patch) | |
tree | 5ebc881e76d6c5d15bc2a8240caa9c274da1a3ce /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 6f29ad917051349b99d566ddf57add7c60489094 (diff) | |
download | llvm-aa99c94e2a75e86381bcc45de61c11725a1484d6.zip llvm-aa99c94e2a75e86381bcc45de61c11725a1484d6.tar.gz llvm-aa99c94e2a75e86381bcc45de61c11725a1484d6.tar.bz2 |
Revert 85678/85680. The decision is to stay with the current form of
indirectbr, thus we don't need "blockaddr(@func, null)". Eliminate it
for simplicity.
llvm-svn: 85699
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index e32977d..af0b8ac 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -854,8 +854,7 @@ static void WriteConstants(unsigned FirstVal, unsigned LastVal, break; } } else if (const BlockAddress *BA = dyn_cast<BlockAddress>(C)) { - assert((!BA->getBasicBlock() || - BA->getFunction() == BA->getBasicBlock()->getParent()) && + assert(BA->getFunction() == BA->getBasicBlock()->getParent() && "Malformed blockaddress"); Code = bitc::CST_CODE_BLOCKADDRESS; Record.push_back(VE.getTypeID(BA->getFunction()->getType())); |