Initialize TypeOrExpr to NULL to silence a false-positive uninitialized warning

from certain GCC's. Patch by Neil Vachharajani!

llvm-svn: 113995
This commit is contained in:
Nick Lewycky 2010-09-15 18:35:19 +00:00
parent 0f592ace6b
commit 970aed92c0
1 changed files with 1 additions and 1 deletions

View File

@ -1898,7 +1898,7 @@ ExprResult Parser::ParseObjCMessageExpression() {
// 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();