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

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 4 20:28:15 PST 2026


================
@@ -0,0 +1,180 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir -clangir-disable-passes -Wno-return-type %s -o %t.cir
+// RUN: cir-opt %t.cir -test-cir-function-exit-analysis --remarks-filter=function-exit -o /dev/null 2>&1 | FileCheck %s
+// RUN: cir-opt %t.cir -test-cir-function-exit-analysis --remarks-filter=function-exit --mlir-disable-threading -o /dev/null 2>&1 | FileCheck %s
+// RUN: cir-opt %t.cir -test-cir-function-exit-analysis --remarks-filter=function-exit -o /dev/null 2>&1 | FileCheck %s --check-prefix=ALIAS
----------------
bcardosolopes wrote:

Done

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


More information about the cfe-commits mailing list