[cfe-commits] r160822 - /cfe/trunk/test/Analysis/misc-ps.m
Ted Kremenek
kremenek at apple.com
Thu Jul 26 15:32:35 PDT 2012
Author: kremenek
Date: Thu Jul 26 17:32:35 2012
New Revision: 160822
URL: http://llvm.org/viewvc/llvm-project?rev=160822&view=rev
Log:
Tweak test case to not emit warning.
Modified:
cfe/trunk/test/Analysis/misc-ps.m
Modified: cfe/trunk/test/Analysis/misc-ps.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/misc-ps.m?rev=160822&r1=160821&r2=160822&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/misc-ps.m (original)
+++ cfe/trunk/test/Analysis/misc-ps.m Thu Jul 26 17:32:35 2012
@@ -1363,14 +1363,13 @@
enum rdar1196620_e { E_A, E_B, E_C, E_D };
struct rdar1196620_s { int ints[E_D+1]; };
-static int rdar1196620_call_assert(struct rdar1196620_s* s) {
+static void rdar1196620_call_assert(struct rdar1196620_s* s) {
int i = 0;
s?(void)0:__assert_fail();
}
static void rdar1196620(struct rdar1196620_s* s) {
- if (rdar1196620_call_assert(s))
- return;
+ rdar1196620_call_assert(s);
}
More information about the cfe-commits
mailing list