[PATCH] D51020: MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMP: Fix build with newer libstdc++

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 20 19:01:35 PDT 2018


tstellar created this revision.
tstellar added a reviewer: homerdin.

Repository:
  rT test-suite

https://reviews.llvm.org/D51020

Files:
  MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h


Index: MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h
===================================================================
--- MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h
+++ MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h
@@ -99,9 +99,9 @@
 
 struct cmp_str
 {
-   bool operator()(char const *a, char const *b)
+   bool operator()(const string &a, const string &b)
    {
-      return strcmp(a, b) < 0;
+      return a.compare(b) < 0;
    }
 };
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51020.161632.patch
Type: text/x-patch
Size: 488 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180821/33ced185/attachment.bin>


More information about the llvm-commits mailing list