From 473a843f31af46de50e7b5747d0f3b41bbfe3fd8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 24 Apr 2003 22:53:01 +0000 Subject: [PATCH] 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 --- tools/bugpoint/BugDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bugpoint/BugDriver.cpp b/tools/bugpoint/BugDriver.cpp index 7a2ce26a854..7ccbe0d828b 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!"); } -- 2.34.1