================
@@ -94,6 +94,10 @@ static const Loan *createLoan(FactManager &FactMgr,
return FactMgr.getLoanMgr().createLoan(Path, MTE);
}
+static bool producesConditionalResult(const Expr *E) {
+ return !isa<CXXThrowExpr>(E->IgnoreParenImpCasts());
+}
+
----------------
NeKon69 wrote:
I couldn't find any other code that will be accepted by the compiler when
return types are different, but if something like this arises again we could
probably expand that function
https://github.com/llvm/llvm-project/pull/190345
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits