r224713 - Simplify test for rdar://19256338
Fariborz Jahanian
fjahanian at apple.com
Mon Dec 22 09:54:25 PST 2014
Author: fjahanian
Date: Mon Dec 22 11:54:25 2014
New Revision: 224713
URL: http://llvm.org/viewvc/llvm-project?rev=224713&view=rev
Log:
Simplify test for rdar://19256338
(from patch r224549).
Modified:
cfe/trunk/test/Sema/warn-tautological-compare.c
Modified: cfe/trunk/test/Sema/warn-tautological-compare.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/warn-tautological-compare.c?rev=224713&r1=224712&r2=224713&view=diff
==============================================================================
--- cfe/trunk/test/Sema/warn-tautological-compare.c (original)
+++ cfe/trunk/test/Sema/warn-tautological-compare.c Mon Dec 22 11:54:25 2014
@@ -78,17 +78,9 @@ void test3() {
}
// rdar://19256338
-#define SAVE_READ(PTR, RESULT) if( (PTR) && *(PTR) ) *RESULT=*PTR;
-
-// Source
-typedef unsigned char Boolean;
-struct HTTPClientPrivate
+#define SAVE_READ(PTR) if( (PTR) && (&result) ) *result=*PTR;
+void _HTTPClientErrorHandler(int me)
{
- Boolean readSuspended;
-};
-typedef struct HTTPClientPrivate * HTTPClientRef;
-static void _HTTPClientErrorHandler( HTTPClientRef me)
-{
- Boolean result;
- SAVE_READ(&me->readSuspended, &result);
+ int *result;
+ SAVE_READ(&me);
}
More information about the cfe-commits
mailing list