We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2a3223 commit ecc928cCopy full SHA for ecc928c
clang/test/Analysis/misc-ps.m
@@ -1363,14 +1363,13 @@ - (void)foo {
1363
enum rdar1196620_e { E_A, E_B, E_C, E_D };
1364
struct rdar1196620_s { int ints[E_D+1]; };
1365
1366
-static int rdar1196620_call_assert(struct rdar1196620_s* s) {
+static void rdar1196620_call_assert(struct rdar1196620_s* s) {
1367
int i = 0;
1368
s?(void)0:__assert_fail();
1369
}
1370
1371
static void rdar1196620(struct rdar1196620_s* s) {
1372
- if (rdar1196620_call_assert(s))
1373
- return;
+ rdar1196620_call_assert(s);
1374
1375
1376
0 commit comments