Use std::isnan instead of isnan. Brought back to you from the
authorBrian Gaeke <gaeke@uiuc.edu>
Tue, 17 Jun 2003 19:59:17 +0000 (19:59 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Tue, 17 Jun 2003 19:59:17 +0000 (19:59 +0000)
future, by the reconciliation of the C++ and C99 standards. Someday.

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

lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp

index 8eaae50cdd503661318fc7719031e34baebee54c..ab5dab5839b94319b9194b437732ac4f38a79263 100644 (file)
@@ -221,7 +221,7 @@ GenericValue lle_X_log(FunctionType *M, const vector<GenericValue> &Args) {
 GenericValue lle_X_isnan(FunctionType *F, const vector<GenericValue> &Args) {
   assert(Args.size() == 1);
   GenericValue GV;
-  GV.IntVal = isnan(Args[0].DoubleVal);
+  GV.IntVal = std::isnan(Args[0].DoubleVal);
   return GV;
 }