summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-17 21:20:52 +0000
committerChris Lattner <sabre@nondot.org>2004-06-17 21:20:52 +0000
commitf03f320b79e20f83fc1eaf92650c16851a056987 (patch)
treeeeb3a15b6d3a28472ef3da0291e09d83b7e2f840 /llvm/lib/Transforms
parent2f2b5f5b9318d18753848462e79a64ba0bec4b29 (diff)
downloadbcm5719-llvm-f03f320b79e20f83fc1eaf92650c16851a056987.tar.gz
bcm5719-llvm-f03f320b79e20f83fc1eaf92650c16851a056987.zip
Fix compilation problem on freebsd. Problem noted by Vladimir Merzliakov in
PR371 llvm-svn: 14203
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 8dc325f427f..60adae862a6 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -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);
OpenPOWER on IntegriCloud