We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f493f9b commit 54f3aeaCopy full SHA for 54f3aea
clang/lib/Analysis/CFG.cpp
@@ -444,12 +444,12 @@ class reverse_children {
444
} // namespace
445
446
reverse_children::reverse_children(Stmt *S, ASTContext &Ctx) {
447
- switch (S->getStmtClass()) {
448
- case Stmt::CallExprClass: {
449
- children = cast<CallExpr>(S)->getRawSubExprs();
+ if (CallExpr *CE = dyn_cast<CallExpr>(S)) {
+ children = CE->getRawSubExprs();
450
return;
451
}
452
+ switch (S->getStmtClass()) {
453
// Note: Fill in this switch with more cases we want to optimize.
454
case Stmt::InitListExprClass: {
455
InitListExpr *IE = cast<InitListExpr>(S);
0 commit comments