Skip to content

Commit a2d353e

Browse files
authored
[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.
1 parent 7de50be commit a2d353e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/include/llvm/Support/GraphWriter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ LLVM_ABI bool DisplayGraph(StringRef Filename, bool wait = true,
6262
GraphProgram::Name program = GraphProgram::DOT);
6363

6464
template <typename GraphType, typename Derived> class GraphWriterBase {
65+
protected:
6566
raw_ostream &O;
6667
const GraphType &G;
6768
bool RenderUsingHTML = false;

0 commit comments

Comments
 (0)