forked from OSchip/llvm-project
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
This commit is contained in:
parent
b62fa74253
commit
1e1abdd6ed
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue