Skip to content

Commit c5fcba3

Browse files
committed
Fix another call to isa_and_nonnull
1 parent 553c116 commit c5fcba3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,8 +1018,8 @@ void ExprEngine::VisitCXXNewExpr(const CXXNewExpr *CNE, ExplodedNode *Pred,
10181018
// values are properly placed inside the required region, however if an
10191019
// initializer list is used, this doesn't happen automatically.
10201020
auto *Init = CNE->getInitializer();
1021-
bool isInitList = isa_and_nonnull<InitListExpr>(Init) ||
1022-
isa_and_nonnull<CXXParenListInitExpr>(Init);
1021+
bool isInitList =
1022+
isa_and_nonnull<InitListExpr, CXXParenListInitExpr>(Init);
10231023

10241024
QualType ObjTy =
10251025
isInitList ? Init->getType() : CNE->getType()->getPointeeType();

0 commit comments

Comments
 (0)