[llvm-commits] CVS: llvm/lib/Transforms/Utils/Local.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Jun 17 16:28:03 PDT 2004
Changes in directory llvm/lib/Transforms/Utils:
Local.cpp updated: 1.29 -> 1.30
---
Log message:
Fix compilation problem on freebsd. Problem noted by Vladimir Merzliakov in
PR371: http://llvm.cs.uiuc.edu/PR371
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Transforms/Utils/Local.cpp
diff -u llvm/lib/Transforms/Utils/Local.cpp:1.29 llvm/lib/Transforms/Utils/Local.cpp:1.30
--- llvm/lib/Transforms/Utils/Local.cpp:1.29 Tue Jun 15 18:09:50 2004
+++ llvm/lib/Transforms/Utils/Local.cpp Thu Jun 17 16:20:52 2004
@@ -300,7 +300,7 @@
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);
More information about the llvm-commits
mailing list