aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/Local.cpp
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
commit5253f05709b11c93e807885e2af6e3302e7d3877 (patch)
treededdd07a9f5c6a7c84e4f9249d17160d8543c96b /lib/Transforms/Utils/Local.cpp
parent09c130981456e54305c0d05f7842aa15164d0950 (diff)
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
Diffstat (limited to 'lib/Transforms/Utils/Local.cpp')
-rw-r--r--lib/Transforms/Utils/Local.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp
index 8dc325f427..60adae862a 100644
--- a/lib/Transforms/Utils/Local.cpp
+++ b/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);