From: Chris Lattner Date: Thu, 24 Apr 2003 22:53:01 +0000 (+0000) Subject: Make sure that deleted functions have external linkage X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=473a843f31af46de50e7b5747d0f3b41bbfe3fd8;p=oota-llvm.git 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 --- 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!"); }