summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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