| commit | 724c2aa9cbda71c971dc994c604203be339264bc | [log] [tgz] |
|---|---|---|
| author | Victor Vianna <victor.vianna10@gmail.com> | Wed Oct 15 16:59:47 2025 +0100 |
| committer | GitHub <noreply@github.com> | Wed Oct 15 11:59:47 2025 -0400 |
| tree | a21b94725ef495af8457b8064f476b267350c383 | |
| parent | d02f8b42f8111dd2ec828fc04f0305a4dc7feb73 [diff] |
Fix C++23 build error in llvm/Support/Caching.h (#163545) [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 Co-authored-by: Victor Hugo Vianna Silva <victorvianna@google.com>
diff --git a/llvm/include/llvm/Support/Caching.h b/llvm/include/llvm/Support/Caching.h index 7fd9bef..cebf071 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,