| Issue |
75684
|
| Summary |
build error
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
trcrsired
|
```
FAILED: lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/GISel/AArch64PostLegalizerCombiner.cpp.o
/usr/local/bin/clang++ --target=aarch64-linux-android24 --sysroot=/home/cqwrteur/toolchains/sysroots/aarch64-linux-android24 -DGTEST_HAS_RTTI=0 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/cqwrteur/Projects/myllvm/aarch64-linux-android24/build/llvm-project/lib/Target/AArch64 -I/home/cqwrteur/Projects/myllvm/llvm-project/llvm/lib/Target/AArch64 -I/home/cqwrteur/Projects/myllvm/aarch64-linux-android24/build/llvm-project/include -I/home/cqwrteur/Projects/myllvm/llvm-project/llvm/include -stdlib=libc++ -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 -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fPIC -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/GISel/AArch64PostLegalizerCombiner.cpp.o -MF lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/GISel/AArch64PostLegalizerCombiner.cpp.o.d -o lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/GISel/AArch64PostLegalizerCombiner.cpp.o -c /home/cqwrteur/Projects/myllvm/llvm-project/llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp
In file included from /home/cqwrteur/Projects/myllvm/llvm-project/llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp:405:
/home/cqwrteur/Projects/myllvm/aarch64-linux-android24/build/llvm-project/lib/Target/AArch64/AArch64GenPostLegalizeGICombiner.inc:506:18: error: return type of virtual function 'getMatchTable' is not covariant with the return type of the function it overrides ('const int64_t *' (aka 'const long *') is not derived from 'const uint8_t *' (aka 'const unsigned char *'))
506 | const int64_t *getMatchTable() const override;
| ~~~~~~~~~^
/home/cqwrteur/Projects/myllvm/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutor.h:646:26: note: overridden virtual function is here
646 | virtual const uint8_t *getMatchTable() const {
| ~~~~~~~~~^
In file included from /home/cqwrteur/Projects/myllvm/llvm-project/llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp:410:
/home/cqwrteur/Projects/myllvm/aarch64-linux-android24/build/llvm-project/lib/Target/AArch64/AArch64GenPostLegalizeGICombiner.inc:879:7: error: no matching member function for call to 'executeMatchTable'
879 | if (executeMatchTable(*this, State, ExecInfo, B, getMatchTable(), *ST.getInstrInfo(), MRI, *MRI.getTargetRegisterInfo(), *ST.getRegBankInfo(), AvailableFeatures, /*CoverageInfo*/ nullptr)) {
| ^~~~~~~~~~~~~~~~~
/home/cqwrteur/Projects/myllvm/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutorImpl.h:46:28: note: candidate function template not viable: no known conversion from 'const int64_t *' (aka 'const long *') to 'const uint8_t *' (aka 'const unsigned char *') for 5th argument
46 | bool GIMatchTableExecutor::executeMatchTable(
| ^
47 | TgtExecutor &Exec, MatcherState &State,
48 | const ExecInfoTy<PredicateBitset, ComplexMatcherMemFn, CustomRendererFn>
49 | &ExecInfo,
50 | MachineIRBuilder &Builder, const uint8_t *MatchTable,
| ~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
[1705/6024] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/GISel/AArch64LegalizerInfo.cpp.o
ninja: build stopped: subcommand failed.
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs