[clang] Reapply "[analyzer] Handle [[assume(cond)]] as __builtin_assume(cond)" (PR #129234)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 5 03:06:58 PST 2025


================
@@ -443,21 +443,44 @@ class reverse_children {
 
 } // namespace
 
-reverse_children::reverse_children(Stmt *S) {
-  if (CallExpr *CE = dyn_cast<CallExpr>(S)) {
-    children = CE->getRawSubExprs();
+reverse_children::reverse_children(Stmt *S, ASTContext &Ctx) {
+  switch (S->getStmtClass()) {
+  case Stmt::CallExprClass: {
----------------
steakhal wrote:

Thanks, fixed.

https://github.com/llvm/llvm-project/pull/129234


More information about the cfe-commits mailing list