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
This commit is contained in:
Chris Lattner
2009-11-01 01:27:45 +00:00
parent 6f29ad9170
commit aa99c94e2a
11 changed files with 25 additions and 47 deletions

View File

@@ -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()));