<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55920>55920</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            build of m86k backend fails with `error: no matching constructor for initialization of 'llvm::M68kMachineFunctionInfo'`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          sylvestre
      </td>
    </tr>
</table>

<pre>
    ```
"/build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/build-llvm/./bin/clang++" -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I"/build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/build-llvm/tools/clang/stage2-bins/lib/Target/M68k" -I"/build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/llvm/lib/Target/M68k" -I"/build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/build-llvm/tools/clang/stage2-bins/include" -I"/build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/llvm/include" -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/= -no-canonical-prefixes -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -std=c++14 -MD -MT lib/Target/M68k/CMakeFiles/LLVMM68kCodeGen.dir/M68kExpandPseudo.cpp.o -MF lib/Target/M68k/CMakeFiles/LLVMM68kCodeGen.dir/M68kExpandPseudo.cpp.o.d -o lib/Target/M68k/CMakeFiles/LLVMM68kCodeGen.dir/M68kExpandPseudo.cpp.o -c '/build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/llvm/lib/Target/M68k/M68kExpandPseudo.cpp'
In file included from /build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/llvm/lib/Target/M68k/M68kExpandPseudo.cpp:18:
In file included from /build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/llvm/lib/Target/M68k/M68kInstrInfo.h:22:
In file included from /build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/llvm/include/llvm/CodeGen/MachineInstrBuilder.h:24:
/build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/llvm/include/llvm/CodeGen/MachineFunction.h:104:43: error: no matching constructor for initialization of 'llvm::M68kMachineFunctionInfo'
    return new (Allocator.Allocate<Ty>()) Ty(MF);
                                          ^  ~~
/build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/llvm/include/llvm/CodeGen/MachineFunction.h:756:29: note: in instantiation of function template specialization 'llvm::MachineFunctionInfo::create<llvm::M68kMachineFunctionInfo>' requested here
      MFInfo = Ty::template create<Ty>(Allocator, *this);
                            ^
/build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/llvm/lib/Target/M68k/M68kExpandPseudo.cpp:308:12: note: in instantiation of function template specialization 'llvm::MachineFunction::getInfo<llvm::M68kMachineFunctionInfo>' requested here
  MFI = MF.getInfo<M68kMachineFunctionInfo>();
           ^
/build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/llvm/lib/Target/M68k/M68kMachineFunction.h:23:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'llvm::MachineFunction' to 'const llvm::M68kMachineFunctionInfo' for 1st argument
class M68kMachineFunctionInfo : public MachineFunctionInfo {
      ^
/build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/llvm/lib/Target/M68k/M68kMachineFunction.h:23:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'llvm::MachineFunction' to 'llvm::M68kMachineFunctionInfo' for 1st argument
/build/llvm-toolchain-snapshot-15~++20220607031601+3731bbc42510/llvm/lib/Target/M68k/M68kMachineFunction.h:69:12: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
  explicit M68kMachineFunctionInfo() = default;
           ^
1 error generated.
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzdWNtu2zgQ_Rr5hZChi68PfnCcuDBQJ4vG3cU-BZRES9zIpEpSTrJfv2ck2XG2aTdFm6ZYQ6AtXmbOzBnOkE509jDzRkH3BOdeMPeiyIuWSS3LDN9lud_5TusyLbhUvlW8soV2fjj0xhdedIYnCqIoGAXjIA5HQYiOeByHSZIOomEYHET5JAgvfeqQCm1acpW3EqCS-ec37y4_3lxfffywuKC3m-vN-eJmcXV5vZlfbm7W88WHq-vHgeXVh_X88-73q_XqsXf1usaQKPtoytI6novIh33UW8oE7YabXDj8WI8mt42hPx5UB-fnKfwGL0iVlnUmXtfyUyVb6E9v_cpoJ1KnjW-d0Spn_h9bbXbc4YcwRhsvPm87fCvS2kj3gBGl_VrVVmR-qnc7rmCkVMKHS-udULQ24074Tu4ExRyCcLNa_tlFLSSS_t9WC7SQZAUkOJn6UjlhKm2lk1phbC-tTGQJlRgiBdYvZJYJdYLtRM-xr1Z5zU0GdHzPZck7GUrcYRIvS5p67wx_YkjFDd8JAEDvHcwU5BCpcov3lFvnf6o5rdxJa9Htb6UAt1IBLC_l38JgYiWyxpJWcAl3Ng1JaHmaTshhFZzZACDTJUblriplKp2_BTpXGF3nBS3Se2EAzd5J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