summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/bugpoint/BugDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/BugDriver.cpp b/llvm/tools/bugpoint/BugDriver.cpp
index 7a2ce26a854..7ccbe0d828b 100644
--- a/llvm/tools/bugpoint/BugDriver.cpp
+++ b/llvm/tools/bugpoint/BugDriver.cpp
@@ -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!");
}
OpenPOWER on IntegriCloud