================
@@ -1309,6 +1338,8 @@ buildTransferMatchSwitch(ASTContext &Ctx,
                                        transferStatusOrConstructor)
       .CaseOfCFGStmt<CXXConstructExpr>(isStatusConstructor(),
                                        transferStatusConstructor)
+      .CaseOfCFGStmt<CallExpr>(isNonConstStatusOrPtrArgumentCall(),
----------------
jvoung wrote:

Hmm, my main worry is how these `CaseOfCFGStmt` only run transfer function 
(unless you explicitly delegate to another one). For example, what if there is 
a function that returns a StatusOr, but also takes a non-const pointer to a 
StatusOr ?

https://github.com/llvm/llvm-project/pull/180281
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to