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 | 66d84831705cc8fe5b3608169cb3f4fb6f233f3e (patch) | |
| tree | 7ac25ec9a9a71fdb2b16d7b2706797fd8de79969 /clang/lib/Sema | |
| parent | 2e5571d0fb08dce61815308989ffed5de9a56d96 (diff) | |
| download | bcm5719-llvm-66d84831705cc8fe5b3608169cb3f4fb6f233f3e.tar.gz bcm5719-llvm-66d84831705cc8fe5b3608169cb3f4fb6f233f3e.zip | |
Fix a gcc Wuninitialized false positive.
llvm-svn: 125298
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index fcc56f14920..5634c6cdd87 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/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. |

