[PATCH] D42411: [test-suite] Fix ambigous call to overloaded function isnan

Simon Dardis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 15 03:42:30 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL325231: [test-suite] Fix ambigous call to overloaded function isnan (authored by sdardis, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D42411

Files:
  test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/clamr_cpuonly.cpp


Index: test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/clamr_cpuonly.cpp
===================================================================
--- test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/clamr_cpuonly.cpp
+++ test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/clamr_cpuonly.cpp
@@ -55,7 +55,7 @@
  */
 
 #include <algorithm>
-#include <math.h>
+#include <cmath>
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/time.h>
@@ -499,7 +499,7 @@
 
    int error_status = STATUS_OK;
 
-   if (isnan(H_sum)) {
+   if (std::isnan(H_sum)) {
       printf("Got a NAN on cycle %d\n",ncycle);
       error_status = STATUS_NAN;
    }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42411.134400.patch
Type: text/x-patch
Size: 677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180215/7c620e50/attachment.bin>


More information about the llvm-commits mailing list