mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 08:44:48 +00:00
Make sure that deleted functions have external linkage
llvm-svn: 5912
This commit is contained in:
parent
ad5fa07a44
commit
7a2b711c95
@ -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!");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user