diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-24 22:53:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-24 22:53:01 +0000 |
commit | 473a843f31af46de50e7b5747d0f3b41bbfe3fd8 (patch) | |
tree | 60b63044ca13a14ce06bdbf60e76c48dd0535713 | |
parent | aae33f9137e4a64394d8f9fe66611ae53a0ef4e8 (diff) |
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
-rw-r--r-- | tools/bugpoint/BugDriver.cpp | 2 |
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!"); } |