[clang] [CIR] -Wreturn-type (1/2): Add an analysis classifying how control reaches a function's end (PR #239774)

Henrich Lauko via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 1 12:47:52 PST 2026


================
@@ -378,6 +378,24 @@ let cppNamespace = "::cir" in {
     ];
   }
 
+  def CIR_SynthesizedTerminatorOpInterface
----------------
xlauko wrote:

All three ops use the default `getImplicit()`, and `visitTerminator` still checks `isa<ReturnOp>` inside the interface branch. Would a `TypeSwitch` over `ReturnOp`/`TrapOp`/`UnreachableOp` do the job without a new interface?

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


More information about the cfe-commits mailing list