mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
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:
parent
09c1309814
commit
5253f05709
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user