Skip to content

Commit 724c2aa

Browse files
victorviannaVictor Hugo Vianna Silva
andauthored
Fix C++23 build error in llvm/Support/Caching.h (llvm#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 <[email protected]>
1 parent d02f8b4 commit 724c2aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/include/llvm/Support/Caching.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717

1818
#include "llvm/Support/Compiler.h"
1919
#include "llvm/Support/Error.h"
20+
#include "llvm/Support/MemoryBuffer.h"
2021

2122
namespace llvm {
2223

23-
class MemoryBuffer;
24-
2524
/// This class wraps an output stream for a file. Most clients should just be
2625
/// able to return an instance of this base class from the stream callback, but
2726
/// if a client needs to perform some action after the stream is written to,

0 commit comments

Comments
 (0)