<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/152972>152972</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Xtensa fails to build with `error: invalid conversion from 'bool (*)(`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
build-problem,
backend:Xtensa
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sylvestre
</td>
</tr>
</table>
<pre>
```
FAILED: lib/Target/Xtensa/CMakeFiles/LLVMXtensaCodeGen.dir/XtensaISelLowering.cpp.o
/opt/sccache//sccache /usr/bin/g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/source/build-llvm/lib/Target/Xtensa -I/build/source/llvm/lib/Target/Xtensa -I/build/source/build-llvm/include -I/build/source/llvm/include -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=3 -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-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -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/Xtensa/CMakeFiles/LLVMXtensaCodeGen.dir/XtensaISelLowering.cpp.o -MF lib/Target/Xtensa/CMakeFiles/LLVMXtensaCodeGen.dir/XtensaISelLowering.cpp.o.d -o lib/Target/Xtensa/CMakeFiles/LLVMXtensaCodeGen.dir/XtensaISelLowering.cpp.o -c /build/source/llvm/lib/Target/Xtensa/XtensaISelLowering.cpp
/build/source/llvm/lib/Target/Xtensa/XtensaISelLowering.cpp: In member function 'bool (* llvm::XtensaTargetLowering::CCAssignFnForCall(llvm::CallingConv::ID, bool) const)(unsigned int, llvm::MVT, llvm::MVT, llvm::CCValAssign::LocInfo, llvm::ISD::ArgFlagsTy, llvm::Type*, llvm::CCState&)':
/build/source/llvm/lib/Target/Xtensa/XtensaISelLowering.cpp:439:10: error: invalid conversion from 'bool (*)(unsigned int, llvm::MVT, llvm::MVT, llvm::CCValAssign::LocInfo, llvm::ISD::ArgFlagsTy, llvm::CCState&)' to 'bool (*)(unsigned int, llvm::MVT, llvm::MVT, llvm::CCValAssign::LocInfo, llvm::ISD::ArgFlagsTy, llvm::Type*, llvm::CCState&)' [-fpermissive]
439 | return CC_Xtensa_Custom;
| ^~~~~~~~~~~~~~~~
| |
| bool (*)(unsigned int, llvm::MVT, llvm::MVT, llvm::CCValAssign::LocInfo, llvm::ISD::ArgFlagsTy, llvm::CCState&)
At global scope:
```
very recent regression
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzMV0tv2zgX_TX0hqAhU3ZsLbxQpKgwECcfYrf5ZmVQ5JXMKUVqSMqpu5jfPqDkxHWmrylaoEKQRIf3nnMffIk5J2sNsESzazTLR6zze2OX7qgO4LyFUWnEcYmuotNPlKIoLdLV7U2O4hQrWSJabJmtwSNa_N-DdgzRIluz91BIBQ7R4vb23XoYyYyAN6DHQtoX69UG1K15Ait1PeZtOzZBhBamDYyOc8b3gGhxfsGIFp0LDKXUiBY1oteIXmOS797cvd1t7t8-ZDfhbbfZ5tkuu7_bbNO77W6dZg_3m_NAcf-wTv8N367WqzO6CjK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