Skip to content

Commit

Permalink
[NewPM] Add deduction guide to MFPropsModifier to suppress warning (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
paperchalice authored Jun 22, 2024
1 parent 4a7bf42 commit 4145ad2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llvm/include/llvm/CodeGen/MachinePassManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ template <typename PassT> class MFPropsModifier {
is_detected<has_get_cleared_properties_t, T>::value;
};

// Additional deduction guide to suppress warning.
template <typename PassT>
MFPropsModifier(PassT &P, MachineFunction &MF) -> MFPropsModifier<PassT>;

using MachineFunctionAnalysisManagerModuleProxy =
InnerAnalysisManagerProxy<MachineFunctionAnalysisManager, Module>;

Expand Down

0 comments on commit 4145ad2

Please sign in to comment.