[clang] Add support for builtin_verbose_trap (PR #79230)

Dan Liew via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 20 12:35:01 PDT 2024


================
@@ -0,0 +1,49 @@
+// RUN: %clang_cc1 -triple arm64-apple-ios -std=c++20 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
----------------
delcypher wrote:

@pogo59 @ahatanak Thanks for the explanation.

A slight issue with that is some cases Clang will generate different (unoptimized IR) depending on the optimization level (see `CodeGenFunction::EmitTrapCheck`) so in those cases you have to test Clang's optimizing behavior. You're not using that here so that's fine

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


More information about the cfe-commits mailing list