From 65200778dc2ba0f23ee2005742904bfc1f039bc8 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 12 Oct 2025 21:48:06 -0700 Subject: [PATCH] [Support] Use an inherited constructor in DOTGraphTraits (NFC) This patch simplifies DOTGraphTraits with an inherited constructor. This way, we do not need to repeat the constructor signature or manually forward constructor arguments. --- llvm/include/llvm/Support/DOTGraphTraits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Support/DOTGraphTraits.h b/llvm/include/llvm/Support/DOTGraphTraits.h index ffa9abe328c83..bf30aa4df9fab 100644 --- a/llvm/include/llvm/Support/DOTGraphTraits.h +++ b/llvm/include/llvm/Support/DOTGraphTraits.h @@ -164,7 +164,7 @@ struct DefaultDOTGraphTraits { /// template struct DOTGraphTraits : public DefaultDOTGraphTraits { - DOTGraphTraits (bool simple=false) : DefaultDOTGraphTraits (simple) {} + using DefaultDOTGraphTraits::DefaultDOTGraphTraits; }; } // End llvm namespace