summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2010-09-15 18:35:19 +0000
committerNick Lewycky <nicholas@mxc.ca>2010-09-15 18:35:19 +0000
commit970aed92c09e7b804bad502fc882fb0d69fc5517 (patch)
tree8f271f56690ede4d7bc378c3c5e51c897127d2c0 /clang/lib
parent0f592ace6b624af51196d3163d6af6ef6515b3fd (diff)
downloadbcm5719-llvm-970aed92c09e7b804bad502fc882fb0d69fc5517.tar.gz
bcm5719-llvm-970aed92c09e7b804bad502fc882fb0d69fc5517.zip
Initialize TypeOrExpr to NULL to silence a false-positive uninitialized warning
from certain GCC's. Patch by Neil Vachharajani! llvm-svn: 113995
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Parse/ParseObjc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseObjc.cpp b/clang/lib/Parse/ParseObjc.cpp
index c29c618b014..46870d95285 100644
--- a/clang/lib/Parse/ParseObjc.cpp
+++ b/clang/lib/Parse/ParseObjc.cpp
@@ -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();
OpenPOWER on IntegriCloud