[clang] [clang][CodeGen] Fix crash on if/switch init-statement ending in noreturn (PR #201047)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 2 13:50:53 PDT 2026
================
@@ -0,0 +1,32 @@
+// RUN: %clang_cc1 -std=c++17 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | FileCheck %s
+
+struct T {
+ ~T();
+};
+[[noreturn]] void die();
+bool check(const T &);
+int pick(const T &);
+
+// CHECK-LABEL: define {{.*}} @_Z4testb(
----------------
efriedma-quic wrote:
Please use update_cc_test_checks unless you have a reason not to... it would be good to see that the jump actually works correctly.
https://github.com/llvm/llvm-project/pull/201047
More information about the cfe-commits
mailing list