https://github.com/tbaederr created
https://github.com/llvm/llvm-project/pull/186819
Instead of relying on the default value. That one doesn't work properly in lldb
and I have to pass the `{}` explicitly every time.
>From 6eff9bae8dd76e0555c49b15a7089ebbd8f46f6d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <[email protected]>
Date: Mon, 16 Mar 2026 16:20:40 +0100
Subject: [PATCH] [clang][bytecode][NFC] Add Function::dump() taking no
arguments
Instead of relying on the default value. That one doesn't work properly
in lldb and I have to pass the `{}` explicitly every time.
---
clang/lib/AST/ByteCode/Function.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/clang/lib/AST/ByteCode/Function.h
b/clang/lib/AST/ByteCode/Function.h
index 544172b7e0c26..f67eabf1f27b9 100644
--- a/clang/lib/AST/ByteCode/Function.h
+++ b/clang/lib/AST/ByteCode/Function.h
@@ -327,7 +327,8 @@ class Function final {
public:
/// Dumps the disassembled bytecode to \c llvm::errs().
- void dump(CodePtr PC = {}) const;
+ void dump() const { dump({}); }
+ void dump(CodePtr PC) const;
void dump(llvm::raw_ostream &OS, CodePtr PC = {}) const;
};
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits