diff options
author | Vedant Kumar <vsk@apple.com> | 2017-12-08 02:47:58 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-12-08 02:47:58 +0000 |
commit | 29477dc82e9f6e35a91210daa834c59d8216d308 (patch) | |
tree | 1b95f455d5c3a83dc3886ed5d33a02b4252dcc69 /clang/test/CodeGenObjC | |
parent | 1c30924420199897009723aa637219576bbf96fc (diff) | |
download | bcm5719-llvm-29477dc82e9f6e35a91210daa834c59d8216d308.tar.gz bcm5719-llvm-29477dc82e9f6e35a91210daa834c59d8216d308.zip |
[Blocks] Inherit sanitizer options from parent decl
There is no way to apply sanitizer suppressions to ObjC blocks. A
reasonable default is to have blocks inherit their parent's sanitizer
options.
rdar://32769634
Differential Revision: https://reviews.llvm.org/D40668
llvm-svn: 320132
Diffstat (limited to 'clang/test/CodeGenObjC')
-rw-r--r-- | clang/test/CodeGenObjC/no-sanitize.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/CodeGenObjC/no-sanitize.m b/clang/test/CodeGenObjC/no-sanitize.m index 39f8575670d..07a196b6419 100644 --- a/clang/test/CodeGenObjC/no-sanitize.m +++ b/clang/test/CodeGenObjC/no-sanitize.m @@ -1,8 +1,9 @@ -// RUN: %clang_cc1 %s -emit-llvm -fsanitize=address -o - | FileCheck %s +// RUN: %clang_cc1 %s -emit-llvm -fsanitize=address -fblocks -o - | FileCheck %s @interface I0 @end @implementation I0 // CHECK-NOT: sanitize_address - (void) im0: (int) a0 __attribute__((no_sanitize("address"))) { + int (^blockName)() = ^int() { return 0; }; } @end |