[compiler-rt] r206180 - [asan] Do not use lambda in sanitizer lit tests.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Mon Apr 14 08:41:16 PDT 2014
Ok, it looks like libstdc++ 4.4.7 headers are not compatible with -std=c++11 ...
On Mon, Apr 14, 2014 at 7:37 PM, Evgeniy Stepanov
<eugeni.stepanov at gmail.com> wrote:
> Hm, I could be mistaken. I'm trying to fix this:
> http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-centos-6.5/builds/3188/steps/test/logs/stdio
>
> On Mon, Apr 14, 2014 at 7:29 PM, David Blaikie <dblaikie at gmail.com> wrote:
>> On Mon, Apr 14, 2014 at 8:19 AM, Evgeniy Stepanov
>> <eugeni.stepanov at gmail.com> wrote:
>>> Author: eugenis
>>> Date: Mon Apr 14 10:19:07 2014
>>> New Revision: 206180
>>>
>>> URL: http://llvm.org/viewvc/llvm-project?rev=206180&view=rev
>>> Log:
>>> [asan] Do not use lambda in sanitizer lit tests.
>>>
>>> We may be building with a very old C++ library.
>>
>> The age of your C++ standard library shouldn't affect your ability to
>> use lambdas...
>>
>> Could you explain the issue in more detail?
>>
>>>
>>> Modified:
>>> compiler-rt/trunk/test/asan/TestCases/mmap_limit_mb.cc
>>>
>>> Modified: compiler-rt/trunk/test/asan/TestCases/mmap_limit_mb.cc
>>> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/mmap_limit_mb.cc?rev=206180&r1=206179&r2=206180&view=diff
>>> ==============================================================================
>>> --- compiler-rt/trunk/test/asan/TestCases/mmap_limit_mb.cc (original)
>>> +++ compiler-rt/trunk/test/asan/TestCases/mmap_limit_mb.cc Mon Apr 14 10:19:07 2014
>>> @@ -22,8 +22,7 @@ int main(int argc, char **argv) {
>>> std::vector<char *> v;
>>> for (long total = total_mb << 20; total > 0; total -= allocation_size)
>>> v.push_back(new char[allocation_size]);
>>> - std::for_each(v.begin(), v.end(),
>>> - [](std::vector<char *>::reference ref) { delete[] ref; });
>>> + for (auto p : v) delete[] p;
>>> printf("PASS\n");
>>> // CHECK: AddressSanitizer CHECK failed{{.*}}total_mmaped{{.*}}mmap_limit_mb
>>> return 0;
>>>
>>>
>>> _______________________________________________
>>> llvm-commits mailing list
>>> llvm-commits at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list