Fix compilation problem on freebsd. Problem noted by Vladimir Merzliakov in
authorChris Lattner <sabre@nondot.org>
Thu, 17 Jun 2004 21:20:52 +0000 (21:20 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 17 Jun 2004 21:20:52 +0000 (21:20 +0000)
PR371

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14203 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/Local.cpp

index 8dc325f427fa4e9bcabde274681fb5c9a4bc2011..60adae862a6325b44c1736ce91acbcf54eb6de9e 100644 (file)
@@ -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);