projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
297176c
)
[analyzer] Remove redundant check as per Jordan's feedback.
author
Anna Zaks
<ganna@apple.com>
Thu, 7 Feb 2013 23:29:22 +0000
(23:29 +0000)
committer
Anna Zaks
<ganna@apple.com>
Thu, 7 Feb 2013 23:29:22 +0000
(23:29 +0000)
llvm-svn: 174680
clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
b/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
index
a30d589
..
f33f561
100644
(file)
--- a/
clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
+++ b/
clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
@@
-431,10
+431,9
@@
REGISTER_TRAIT_WITH_PROGRAMSTATE(InitializedGlobalsSet,
void ExprEngine::VisitDeclStmt(const DeclStmt *DS, ExplodedNode *Pred,
ExplodedNodeSet &Dst) {
// Assumption: The CFG has one DeclStmt per Decl.
- const Decl *D = *DS->decl_begin();
- const VarDecl *VD = dyn_cast_or_null<VarDecl>(D);
+ const VarDecl *VD = dyn_cast_or_null<VarDecl>(*DS->decl_begin());
- if (!
D || !
VD) {
+ if (!VD) {
//TODO:AZ: remove explicit insertion after refactoring is done.
Dst.insert(Pred);
return;