mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Fix compilation problem on freebsd. Problem noted by Vladimir Merzliakov in
PR371 llvm-svn: 14203
This commit is contained in:
parent
7d711d517b
commit
13cea4ef6f
@ -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…
Reference in New Issue
Block a user