[clang] [Clang] Allow musttail in noexcept functions when callee is nounwind (PR #190945)
Paweł Bylica via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 8 10:14:28 PDT 2026
================
@@ -0,0 +1,20 @@
+// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -emit-llvm %s -triple x86_64-unknown-linux-gnu -o /dev/null -verify
+
+// Musttail in noexcept functions should work when the callee is also noexcept.
+// The EHTerminateScope pushed by noexcept is safe to skip because the callee
+// won't throw.
----------------
chfast wrote:
Thanks for checking this out. Can you be more specific what kind of test kind do you expect for positive and negative test?
https://github.com/llvm/llvm-project/pull/190945
More information about the cfe-commits
mailing list