diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-02-10 18:24:25 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-02-10 18:24:25 +0000 |
commit | f2d1561d5124cabe14790091fafb68926de58df3 (patch) | |
tree | f37a258a775b8ef6ab6a1d2ebdaee1dfffdc59e7 /lib/Sema/SemaExpr.cpp | |
parent | 9c7361006b8cd95333958150dd0c803261807b68 (diff) |
Fix a gcc Wuninitialized false positive.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index fcc56f1492..5634c6cdd8 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -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. |