Skip to content

Commit 7c866cc

Browse files
authored
[CodeGen] Mark MachinePostDominatorTree constructor explicit (#96852)
Align with PostDominatorTree.
1 parent 3d7d246 commit 7c866cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/CodeGen/MachinePostDominators.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class MachinePostDominatorTree : public PostDomTreeBase<MachineBasicBlock> {
4949
public:
5050
MachinePostDominatorTree() = default;
5151

52-
MachinePostDominatorTree(MachineFunction &MF) { recalculate(MF); }
52+
explicit MachinePostDominatorTree(MachineFunction &MF) { recalculate(MF); }
5353

5454
/// Handle invalidation explicitly.
5555
bool invalidate(MachineFunction &, const PreservedAnalyses &PA,

0 commit comments

Comments
 (0)