llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Timm Baeder (tbaederr)

<details>
<summary>Changes</summary>

Instead of relying on the default value. That one doesn't work properly in lldb 
and I have to pass the `{}` explicitly every time.

---
Full diff: https://github.com/llvm/llvm-project/pull/186819.diff


1 Files Affected:

- (modified) clang/lib/AST/ByteCode/Function.h (+2-1) 


``````````diff
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;
 };
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/186819
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to