summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/FunctionResolution.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-18 05:50:48 +0000
committerChris Lattner <sabre@nondot.org>2004-06-18 05:50:48 +0000
commite5ad50b2e8ee0fae2e1078276a7e2f3a306f66de (patch)
tree9caa111ab5daab84673a821be899e9baf71ab296 /lib/Transforms/IPO/FunctionResolution.cpp
parenteaf10c82423ffb8a836e8a8e691874116aeae8f2 (diff)
downloadllvm-e5ad50b2e8ee0fae2e1078276a7e2f3a306f66de.tar.gz
llvm-e5ad50b2e8ee0fae2e1078276a7e2f3a306f66de.tar.bz2
llvm-e5ad50b2e8ee0fae2e1078276a7e2f3a306f66de.tar.xz
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
Diffstat (limited to 'lib/Transforms/IPO/FunctionResolution.cpp')
-rw-r--r--lib/Transforms/IPO/FunctionResolution.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/FunctionResolution.cpp b/lib/Transforms/IPO/FunctionResolution.cpp
index 528c8acce1..303cad1e7d 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);
}