[compiler-rt] r177245 - [Sanitizer] Rely on template argument deduction in sanitizer_allocator_test
Alexey Samsonov
samsonov at google.com
Sun Mar 17 23:07:44 PDT 2013
Author: samsonov
Date: Mon Mar 18 01:07:44 2013
New Revision: 177245
URL: http://llvm.org/viewvc/llvm-project?rev=177245&view=rev
Log:
[Sanitizer] Rely on template argument deduction in sanitizer_allocator_test
Modified:
compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc?rev=177245&r1=177244&r2=177245&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc Mon Mar 18 01:07:44 2013
@@ -607,7 +607,7 @@ void TestSizeClassAllocatorIteration() {
std::set<void *> reported_chunks;
IterationTestCallback callback(&reported_chunks);
a->ForceLock();
- a->template ForEachChunk<IterationTestCallback>(callback);
+ a->ForEachChunk(callback);
a->ForceUnlock();
for (uptr i = 0; i < allocated.size(); i++) {
@@ -647,7 +647,7 @@ TEST(SanitizerCommon, LargeMmapAllocator
std::set<void *> reported_chunks;
IterationTestCallback callback(&reported_chunks);
a.ForceLock();
- a.ForEachChunk<IterationTestCallback>(callback);
+ a.ForEachChunk(callback);
a.ForceUnlock();
for (uptr i = 0; i < kNumAllocs; i++) {
More information about the llvm-commits
mailing list