diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-18 05:50:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-18 05:50:48 +0000 |
commit | e5ad50b2e8ee0fae2e1078276a7e2f3a306f66de (patch) | |
tree | 9caa111ab5daab84673a821be899e9baf71ab296 /lib/Transforms/IPO/FunctionResolution.cpp | |
parent | eaf10c82423ffb8a836e8a8e691874116aeae8f2 (diff) |
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.cpp | 3 |
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); } |