Make sure that deleted functions have external linkage

llvm-svn: 5912
This commit is contained in:
Chris Lattner 2003-04-24 22:53:01 +00:00
parent ad5fa07a44
commit 7a2b711c95

View File

@ -37,7 +37,7 @@ void DeleteFunctionBody(Function *F) {
// Next, delete all of the basic blocks.
F->getBasicBlockList().clear();
F->setLinkage(GlobalValue::ExternalLinkage);
assert(F->isExternal() && "This didn't make the function external!");
}