[llvm] 7c866cc - [CodeGen] Mark MachinePostDominatorTree constructor explicit (#96852)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 27 04:53:16 PDT 2024


Author: paperchalice
Date: 2024-06-27T19:53:12+08:00
New Revision: 7c866cc69ffbc71eb1f3b849ee4fa16b02dd8732

URL: https://github.com/llvm/llvm-project/commit/7c866cc69ffbc71eb1f3b849ee4fa16b02dd8732
DIFF: https://github.com/llvm/llvm-project/commit/7c866cc69ffbc71eb1f3b849ee4fa16b02dd8732.diff

LOG: [CodeGen] Mark MachinePostDominatorTree constructor explicit (#96852)

Align with PostDominatorTree.

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/MachinePostDominators.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/MachinePostDominators.h b/llvm/include/llvm/CodeGen/MachinePostDominators.h
index 904c5fcdfc68b..7769d4b426c7a 100644
--- a/llvm/include/llvm/CodeGen/MachinePostDominators.h
+++ b/llvm/include/llvm/CodeGen/MachinePostDominators.h
@@ -49,7 +49,7 @@ class MachinePostDominatorTree : public PostDomTreeBase<MachineBasicBlock> {
 public:
   MachinePostDominatorTree() = default;
 
-  MachinePostDominatorTree(MachineFunction &MF) { recalculate(MF); }
+  explicit MachinePostDominatorTree(MachineFunction &MF) { recalculate(MF); }
 
   /// Handle invalidation explicitly.
   bool invalidate(MachineFunction &, const PreservedAnalyses &PA,


        


More information about the llvm-commits mailing list