Skip to content

M68k/M68kGenAsmMatcher.inc:2633:60: error: no match for 'operator*' (operand type is 'const llvm::MCSubtargetInfo') #159862

@sylvestre

Description

@sylvestre

very recent regression:

FAILED: lib/Target/M68k/AsmParser/CMakeFiles/LLVMM68kAsmParser.dir/M68kAsmParser.cpp.o
/usr/bin/g++ -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/source/build-llvm/lib/Target/M68k/AsmParser -I/build/source/llvm/lib/Target/M68k/AsmParser -I/build/source/llvm/lib/Target/M68k -I/build/source/build-llvm/lib/Target/M68k -I/build/source/build-llvm/include -I/build/source/llvm/include -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fdebug-prefix-map=/build/source/build-llvm=../ -fdebug-prefix-map=/build/source/= -no-canonical-prefixes -ffile-prefix-map=/build/source/build-llvm=../ -ffile-prefix-map=/build/source/= -no-canonical-prefixes -O3 -DNDEBUG -std=c++17 -fvisibility=hidden  -fno-exceptions -funwind-tables -MD -MT lib/Target/M68k/AsmParser/CMakeFiles/LLVMM68kAsmParser.dir/M68kAsmParser.cpp.o -MF lib/Target/M68k/AsmParser/CMakeFiles/LLVMM68kAsmParser.dir/M68kAsmParser.cpp.o.d -o lib/Target/M68k/AsmParser/CMakeFiles/LLVMM68kAsmParser.dir/M68kAsmParser.cpp.o -c /build/source/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp
In file included from /build/source/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp:233:
/build/source/build-llvm/lib/Target/M68k/M68kGenAsmMatcher.inc: In member function 'unsigned int {anonymous}::M68kAsmParser::MatchInstructionImpl(const llvm::OperandVector&, llvm::MCInst&, uint64_t&, llvm::FeatureBitset&, bool, unsigned int)':
/build/source/build-llvm/lib/Target/M68k/M68kGenAsmMatcher.inc:2633:60: error: no match for 'operator*' (operand type is 'const llvm::MCSubtargetInfo')
 2633 |       unsigned Diag = validateOperandClass(Actual, Formal, *STI);
      |                                                            ^~~~
/build/source/build-llvm/lib/Target/M68k/M68kGenAsmMatcher.inc:2633:60: note: there are 2 candidates
In file included from /build/source/llvm/include/llvm/ADT/APFloat.h:18,
                 from /build/source/llvm/include/llvm/CodeGen/GlobalISel/Utils.h:18,
                 from /build/source/llvm/include/llvm/CodeGen/MachineInstrBuilder.h:23,
                 from /build/source/llvm/lib/Target/M68k/M68kInstrInfo.h:22,
                 from /build/source/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp:9:
/build/source/llvm/include/llvm/ADT/APInt.h:2235:14: note: candidate 1: 'llvm::APInt llvm::operator*(APInt, uint64_t)'
 2235 | inline APInt operator*(APInt a, uint64_t RHS) {
      |              ^~~~~~~~
/build/source/llvm/include/llvm/ADT/APInt.h:2235:14: note: candidate expects 2 arguments, 1 provided
/build/source/llvm/include/llvm/ADT/APInt.h:2240:14: note: candidate 2: 'llvm::APInt llvm::operator*(uint64_t, APInt)'
 2240 | inline APInt operator*(uint64_t LHS, APInt b) {
      |              ^~~~~~~~
/build/source/llvm/include/llvm/ADT/APInt.h:2240:14: note: candidate expects 2 arguments, 1 provided
/build/source/build-llvm/lib/Target/M68k/M68kGenAsmMatcher.inc: At global scope:
/build/source/build-llvm/lib/Target/M68k/M68kGenAsmMatcher.inc:1186:17: warning: 'unsigned int validateOperandClass(llvm::MCParsedAsmOperand&, {anonymous}::MatchClassKind, const llvm::MCSubtargetInfo&)' defined but not used [-Wunused-function]
 1186 | static unsigned validateOperandClass(MCParsedAsmOperand &GOp, MatchClassKind Kind, const MCSubtargetInfo &STI) {
      |                 ^~~~~~~~~~~~~~~~~~~~
cc1plus: note: unrecognized command-line option '-Wno-unused-command-line-argument' may have been intended to silence earlier diagnostics

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions