[test-suite] r340320 - MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMP: Fix build with newer libstdc++
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 21 12:12:57 PDT 2018
Author: tstellar
Date: Tue Aug 21 12:12:57 2018
New Revision: 340320
URL: http://llvm.org/viewvc/llvm-project?rev=340320&view=rev
Log:
MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMP: Fix build with newer libstdc++
Summary: llvm.org/PR38654
Reviewers: homerdin
Reviewed By: homerdin
Subscribers: cfe-commits, llvm-commits
Differential Revision: https://reviews.llvm.org/D51020
Modified:
test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h
Modified: test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C%2B%2B/CLAMR/MallocPlus.h?rev=340320&r1=340319&r2=340320&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h (original)
+++ test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h Tue Aug 21 12:12:57 2018
@@ -99,9 +99,9 @@ struct malloc_plus_memory_entry {
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;
}
};
More information about the llvm-commits
mailing list