Fix compilation problem on freebsd. Problem noted by Vladimir Merzliakov in

PR371


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14203 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-06-17 21:20:52 +00:00
parent 09c1309814
commit 5253f05709

View File

@ -300,7 +300,7 @@ Constant *llvm::ConstantFoldCall(Function *F,
double Op1V = Op1->getValue(), Op2V = Op2->getValue();
if (Name == "llvm.isunordered")
return ConstantBool::get(isnan(Op1V) | isnan(Op2V));
return ConstantBool::get(std::isnan(Op1V) | std::isnan(Op2V));
else if (Name == "pow") {
errno = 0;
double V = pow(Op1V, Op2V);