[clang] [LifetimeSafety] Fix crash on ternary operator when one of the expressions is `throw` (PR #190345)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 9 08:46:02 PDT 2026


================
@@ -0,0 +1,47 @@
+// RUN: %clang_cc1 -fsyntax-only -fcxx-exceptions -Wlifetime-safety -Wno-dangling -verify %s
----------------
usx95 wrote:

Can we move these tests to `warn-lifetime-safety.cpp`.

The code here requiring exceptions can be added within a `ifdef`

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


More information about the cfe-commits mailing list