summaryrefslogtreecommitdiff
path: root/tools/bugpoint/BugDriver.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-24 22:53:01 +0000
committerChris Lattner <sabre@nondot.org>2003-04-24 22:53:01 +0000
commit473a843f31af46de50e7b5747d0f3b41bbfe3fd8 (patch)
tree60b63044ca13a14ce06bdbf60e76c48dd0535713 /tools/bugpoint/BugDriver.cpp
parentaae33f9137e4a64394d8f9fe66611ae53a0ef4e8 (diff)
downloadllvm-473a843f31af46de50e7b5747d0f3b41bbfe3fd8.tar.gz
llvm-473a843f31af46de50e7b5747d0f3b41bbfe3fd8.tar.bz2
llvm-473a843f31af46de50e7b5747d0f3b41bbfe3fd8.tar.xz
Make sure that deleted functions have external linkage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.cpp')
-rw-r--r--tools/bugpoint/BugDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/BugDriver.cpp b/tools/bugpoint/BugDriver.cpp
index 7a2ce26a85..7ccbe0d828 100644
--- a/tools/bugpoint/BugDriver.cpp
+++ b/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!");
}