From: Chris Lattner Date: Fri, 18 Jun 2004 05:50:48 +0000 (+0000) Subject: Do not function resolve intrinsics. This prevents warnings and possible bad X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e5ad50b2e8ee0fae2e1078276a7e2f3a306f66de;p=oota-llvm.git Do not function resolve intrinsics. This prevents warnings and possible bad things from happening due to declare bool %llvm.isunordered(double, double) declare bool %llvm.isunordered(float, float) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14219 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/FunctionResolution.cpp b/lib/Transforms/IPO/FunctionResolution.cpp index 528c8acce18..303cad1e7d2 100644 --- a/lib/Transforms/IPO/FunctionResolution.cpp +++ b/lib/Transforms/IPO/FunctionResolution.cpp @@ -307,7 +307,8 @@ bool FunctionResolvingPass::run(Module &M) { if (F->use_empty() && F->isExternal()) { M.getFunctionList().erase(F); Changed = true; - } else if (!F->hasInternalLinkage() && !F->getName().empty()) + } else if (!F->hasInternalLinkage() && !F->getName().empty() && + !F->getIntrinsicID()) Globals[F->getName()].push_back(F); }