forked from OSchip/llvm-project
Fix a gcc Wuninitialized false positive.
llvm-svn: 125298
This commit is contained in:
parent
2e5571d0fb
commit
66d8483170
|
@ -2369,7 +2369,7 @@ Sema::BuildDeclarationNameExpr(const CXXScopeSpec &SS,
|
|||
// variable is within the block, create a normal DeclRefExpr.
|
||||
|
||||
QualType type = VD->getType();
|
||||
ExprValueKind valueKind;
|
||||
ExprValueKind valueKind = 0;
|
||||
|
||||
switch (D->getKind()) {
|
||||
// Ignore all the non-ValueDecl kinds.
|
||||
|
|
Loading…
Reference in New Issue