Skip to content

Commit 4145ad2

Browse files
authored
[NewPM] Add deduction guide to MFPropsModifier to suppress warning (#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 #94854. This PR adds deduction guide explicitly to suppress warning.
1 parent 4a7bf42 commit 4145ad2

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)