[cfe-commits] r113995 - /cfe/trunk/lib/Parse/ParseObjc.cpp
Nick Lewycky
nicholas at mxc.ca
Wed Sep 15 11:35:24 PDT 2010
Author: nicholas
Date: Wed Sep 15 13:35:19 2010
New Revision: 113995
URL: http://llvm.org/viewvc/llvm-project?rev=113995&view=rev
Log:
Initialize TypeOrExpr to NULL to silence a false-positive uninitialized warning
from certain GCC's. Patch by Neil Vachharajani!
Modified:
cfe/trunk/lib/Parse/ParseObjc.cpp
Modified: cfe/trunk/lib/Parse/ParseObjc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseObjc.cpp?rev=113995&r1=113994&r2=113995&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseObjc.cpp (original)
+++ cfe/trunk/lib/Parse/ParseObjc.cpp Wed Sep 15 13:35:19 2010
@@ -1898,7 +1898,7 @@
// Parse the receiver, which is either a type or an expression.
bool IsExpr;
- void *TypeOrExpr;
+ void *TypeOrExpr = NULL;
if (ParseObjCXXMessageReceiver(IsExpr, TypeOrExpr)) {
SkipUntil(tok::r_square);
return ExprError();
More information about the cfe-commits
mailing list