[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 15:41:22 PDT 2018
On 08/21/2018 12:12 PM, Tom Stellard via llvm-commits wrote:
> Author: tstellar
> Date: Tue Aug 21 12:12:57 2018
> New Revision: 340320
>
Hi Hans,
Can we merged this test suite fix to the release_70 branch?
-Tom
> 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;
> }
> };
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
More information about the llvm-commits
mailing list