summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-01-23 17:04:59 +0000
committerTed Kremenek <kremenek@apple.com>2011-01-23 17:04:59 +0000
commit582a0999fbb43cafb824d0cf5deb0bd81448e47c (patch)
tree27c33b1c563e7b3ed92e1b9645062fdada5bfb8f /clang/lib/Sema/SemaDecl.cpp
parent8bac423ddb4794e799ac616860768e103b51e007 (diff)
downloadbcm5719-llvm-582a0999fbb43cafb824d0cf5deb0bd81448e47c.tar.gz
bcm5719-llvm-582a0999fbb43cafb824d0cf5deb0bd81448e47c.zip
Null initialize a few variables flagged by
clang's -Wuninitialized-experimental warning. While these don't look like real bugs, clang's -Wuninitialized-experimental analysis is stricter than GCC's, and these fixes have the benefit of being general nice cleanups. llvm-svn: 124072
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 7c6d9d9142f..62adcf9bb19 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -2888,7 +2888,7 @@ Sema::ActOnVariableDeclarator(Scope *S, Declarator &D, DeclContext *DC,
}
}
- bool isExplicitSpecialization;
+ bool isExplicitSpecialization = false;
VarDecl *NewVD;
if (!getLangOptions().CPlusPlus) {
NewVD = VarDecl::Create(Context, DC, D.getIdentifierLoc(),
OpenPOWER on IntegriCloud