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:
Chris Lattner 2004-06-18 05:50:48 +00:00
parent b62fa74253
commit 1e1abdd6ed
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}