зеркало из https://github.com/microsoft/clang-1.git
[analyzer] Remove redundant check as per Jordan's feedback.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174680 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
1c32b81765
Коммит
8135886ab7
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче