Skip to content

Commit 2c2af31

Browse files
paperchaliceAlexisPerry
authored andcommitted
[NewPM] Add deduction guide to MFPropsModifier to suppress warning (llvm#96384)
Buildbot `clang-ppc64le-rhel` failed with: ```sh error: 'MFPropsModifier' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported] note: add a deduction guide to suppress this warning ``` after llvm#94854. This PR adds deduction guide explicitly to suppress warning.
1 parent c325861 commit 2c2af31

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/include/llvm/CodeGen/MachinePassManager.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ template <typename PassT> class MFPropsModifier {
9999
is_detected<has_get_cleared_properties_t, T>::value;
100100
};
101101

102+
// Additional deduction guide to suppress warning.
103+
template <typename PassT>
104+
MFPropsModifier(PassT &P, MachineFunction &MF) -> MFPropsModifier<PassT>;
105+
102106
using MachineFunctionAnalysisManagerModuleProxy =
103107
InnerAnalysisManagerProxy<MachineFunctionAnalysisManager, Module>;
104108

0 commit comments

Comments
 (0)