[cfe-commits] [PATCH] AddressSanitizer: set the AddressSafety attribute in CodeGenModule::SetLLVMFunctionAttributesForDefinition

Alexander Potapenko glider at google.com
Wed Feb 1 07:27:27 PST 2012


I've added a simple test into CodeGenObjCXX
Looks like ObjC does not support the __attribute__ syntax, so it's
unclear how to prevent a specific function from being instrumented.

On Tue, Jan 31, 2012 at 10:27 PM, Chandler Carruth <chandlerc at google.com> wrote:
> On Tue, Jan 31, 2012 at 10:21 AM, Kostya Serebryany <kcc at google.com> wrote:
>>
>> Could you please also extend the test
>> (cfe/trunk/test/CodeGen/address-safety-attr.cpp)?
>> Ok for me, but I'd prefer to have 'ok' from someone else on the clang
>> side.
>
>
> Your comment is the same as mine -- we should add a test that would fail
> without this change. Otherwise LGTM. =]



-- 
Alexander Potapenko
Software Engineer
Google Moscow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asan_address_safety.patch
Type: text/x-patch
Size: 2475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120201/3d502eca/attachment.bin>


More information about the cfe-commits mailing list