[Lldb-commits] [clang] [lldb] [UBSan][BoundsSafety] Implement support for more expressive "trap reasons" (PR #154618)

via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 20 20:22:28 PDT 2025


================
@@ -3721,7 +3722,8 @@ static void emitCheckHandlerCall(CodeGenFunction &CGF,
 void CodeGenFunction::EmitCheck(
     ArrayRef<std::pair<llvm::Value *, SanitizerKind::SanitizerOrdinal>> Checked,
     SanitizerHandler CheckHandler, ArrayRef<llvm::Constant *> StaticArgs,
-    ArrayRef<llvm::Value *> DynamicArgs) {
+    ArrayRef<llvm::Value *> DynamicArgs,
+    std::unique_ptr<RuntimeTrapDiagnosticBuilder> RTDB) {
----------------
Sirraide wrote:

Is there any reason why this is passed by `unique_ptr` rather than just as a regular pointer?

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


More information about the lldb-commits mailing list