[llvm] Fix C++23 build error in llvm/Support/Caching.h (PR #163545)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 15 04:48:23 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-support
Author: Victor Vianna (victorvianna)
<details>
<summary>Changes</summary>
[1] instantiates ~std::unique_ptr<MemoryBuffer>, so it must be a complete type.
[1] https://github.com/llvm/llvm-project/blob/4b89704504dde687ba7983e034cb246581fd1407/llvm/include/llvm/Support/Caching.h#L121
---
Full diff: https://github.com/llvm/llvm-project/pull/163545.diff
1 Files Affected:
- (modified) llvm/include/llvm/Support/Caching.h (+1-2)
``````````diff
diff --git a/llvm/include/llvm/Support/Caching.h b/llvm/include/llvm/Support/Caching.h
index 7fd9befbef9db..cebf071b0188f 100644
--- a/llvm/include/llvm/Support/Caching.h
+++ b/llvm/include/llvm/Support/Caching.h
@@ -17,11 +17,10 @@
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Error.h"
+#include "llvm/Support/MemoryBuffer.h"
namespace llvm {
-class MemoryBuffer;
-
/// This class wraps an output stream for a file. Most clients should just be
/// able to return an instance of this base class from the stream callback, but
/// if a client needs to perform some action after the stream is written to,
``````````
</details>
https://github.com/llvm/llvm-project/pull/163545
More information about the llvm-commits
mailing list