aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaveen Seth Hanig <naveen.hanig@outlook.com>2025-08-11 01:11:34 +0530
committerGitHub <noreply@github.com>2025-08-10 21:41:34 +0200
commita2d353ea17e14a1fc193ec1cf4a6cd39cd73ee44 (patch)
treedde1384b6d3845eed9075760bb3e0c69e84675b4
parent7de50beb5281ec860a810ffa544d67be21d78412 (diff)
downloadllvm-a2d353ea17e14a1fc193ec1cf4a6cd39cd73ee44.zip
llvm-a2d353ea17e14a1fc193ec1cf4a6cd39cd73ee44.tar.gz
llvm-a2d353ea17e14a1fc193ec1cf4a6cd39cd73ee44.tar.bz2
[Support] Fix CRTP for GraphWriter (NFC) (#152811)
Commit 474bbc1 forgot to change the members of GraphWriterBase from private to protected. Because of this, GraphWriter can't be properly partially specialized using CRTP. This commit corrects that, allowing GraphWriterBase to be partially specialized using CRTP as intended.
-rw-r--r--llvm/include/llvm/Support/GraphWriter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/GraphWriter.h b/llvm/include/llvm/Support/GraphWriter.h
index af2e501..a8784ed 100644
--- a/llvm/include/llvm/Support/GraphWriter.h
+++ b/llvm/include/llvm/Support/GraphWriter.h
@@ -62,6 +62,7 @@ LLVM_ABI bool DisplayGraph(StringRef Filename, bool wait = true,
GraphProgram::Name program = GraphProgram::DOT);
template <typename GraphType, typename Derived> class GraphWriterBase {
+protected:
raw_ostream &O;
const GraphType &G;
bool RenderUsingHTML = false;