summaryrefslogtreecommitdiff
path: root/test/Analysis/inlining/false-positive-suppression.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/inlining/false-positive-suppression.m')
-rw-r--r--test/Analysis/inlining/false-positive-suppression.m7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/Analysis/inlining/false-positive-suppression.m b/test/Analysis/inlining/false-positive-suppression.m
index f3532e5d6640b..25fe40fc85556 100644
--- a/test/Analysis/inlining/false-positive-suppression.m
+++ b/test/Analysis/inlining/false-positive-suppression.m
@@ -5,7 +5,7 @@
#define ARC __has_feature(objc_arc)
-#if defined(SUPPRESSED) && !ARC
+#ifdef SUPPRESSED
// expected-no-diagnostics
#endif
@@ -27,9 +27,8 @@ void testNilReceiverHelperA(int *x) {
void testNilReceiverHelperB(int *x) {
*x = 1;
-// FIXME: Suppression for this case isn't working under ARC. It should.
-#if !defined(SUPPRESSED) || (defined(SUPPRESSED) && ARC)
- // expected-warning@-3 {{Dereference of null pointer}}
+#if !defined(SUPPRESSED)
+ // expected-warning@-2 {{Dereference of null pointer}}
#endif
}