Fix a gcc Wuninitialized false positive.

llvm-svn: 125298
This commit is contained in:
Daniel Dunbar 2011-02-10 18:24:25 +00:00
parent 2e5571d0fb
commit 66d8483170
1 changed files with 1 additions and 1 deletions

View File

@ -2369,7 +2369,7 @@ Sema::BuildDeclarationNameExpr(const CXXScopeSpec &SS,
// variable is within the block, create a normal DeclRefExpr. // variable is within the block, create a normal DeclRefExpr.
QualType type = VD->getType(); QualType type = VD->getType();
ExprValueKind valueKind; ExprValueKind valueKind = 0;
switch (D->getKind()) { switch (D->getKind()) {
// Ignore all the non-ValueDecl kinds. // Ignore all the non-ValueDecl kinds.