Do not function resolve intrinsics. This prevents warnings and possible bad
authorChris Lattner <sabre@nondot.org>
Fri, 18 Jun 2004 05:50:48 +0000 (05:50 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 18 Jun 2004 05:50:48 +0000 (05:50 +0000)
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

lib/Transforms/IPO/FunctionResolution.cpp

index 528c8acce1802f5c72eced4c95d691b19d5301fe..303cad1e7d24565e9f42cb6c6c7583ba251c2a9f 100644 (file)
@@ -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);
   }