[llvm] 724c2aa - Fix C++23 build error in llvm/Support/Caching.h (#163545)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 15 08:59:51 PDT 2025
Author: Victor Vianna
Date: 2025-10-15T11:59:47-04:00
New Revision: 724c2aa9cbda71c971dc994c604203be339264bc
URL: https://github.com/llvm/llvm-project/commit/724c2aa9cbda71c971dc994c604203be339264bc
DIFF: https://github.com/llvm/llvm-project/commit/724c2aa9cbda71c971dc994c604203be339264bc.diff
LOG: 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 at google.com>
Added:
Modified:
llvm/include/llvm/Support/Caching.h
Removed:
################################################################################
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,
More information about the llvm-commits
mailing list