http://llvm.org/bugs/show_bug.cgi?id=21392
Bug ID: 21392
Summary: asan does not compile on OS X due to change in
asan_allocator.h
Product: compiler-rt
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
A clean checkout of LLVM/clang/compiler-rt r220671 does not compile on OS X:
/Users/rynnsauer/LLVM/llvm/projects/compiler-rt/lib/asan/asan_mac.cc:302:31:
error: no matching function for
call to 'asan_malloc'
(asan_block_context_t*) asan_malloc(sizeof(asan_block_context_t), stack);
^~~~~~~~~~~
/Users/rynnsauer/LLVM/llvm/projects/compiler-rt/lib/asan/asan_allocator.h:148:7:
note: candidate function not
viable: cannot convert from base class pointer '__sanitizer::StackTrace
*' to derived class pointer
'__sanitizer::BufferedStackTrace *' for 2nd argument
void *asan_malloc(uptr size, BufferedStackTrace *stack);
^
1 error generated.
This seams to have been introduced in r220635:
This change splits __sanitizer::StackTrace class into a lightweight
__sanitizer::StackTrace, which doesn't own array of PCs, and
BufferedStackTrace,
which owns it. This would allow us to simplify the interface of StackDepot,
and eventually merge __sanitizer::StackTrace with __tsan::StackTrace.
(cc-ing Alexey Samsonov who committed r220635)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs