summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
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
commit1e1abdd6ed885809d701b34f7d81c94319876596 (patch)
tree1c207875c27107bfabb9f886a746bcc4836b31d3 /llvm/lib/Transforms
parentb62fa74253de8718631895ce10d07e7b57f352a8 (diff)
downloadbcm5719-llvm-1e1abdd6ed885809d701b34f7d81c94319876596.tar.gz
bcm5719-llvm-1e1abdd6ed885809d701b34f7d81c94319876596.zip
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) llvm-svn: 14219
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionResolution.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionResolution.cpp b/llvm/lib/Transforms/IPO/FunctionResolution.cpp
index 528c8acce18..303cad1e7d2 100644
--- a/llvm/lib/Transforms/IPO/FunctionResolution.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud