The actual error seems to be:
#0 0x7fff8e95743c llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/<>/llvm/lib/Support/Unix/Signals.inc:533:13
#1 0x7fff8e9577a0 PrintStackTraceSignalHandler(void*)
/<>/llvm/lib/Support/Unix/Signals.inc:593:3
#2 0x7fff8e954df8 llvm::sys::RunSignalHandlers()
/<>/llvm/lib/Support/Signals.cpp:67:5
#3 0x7fff8e957b2c SignalHandler(int)
/<>/llvm/lib/Support/Unix/Signals.inc:375:3
#4 0x7fff94d304d8 (linux-vdso64.so.1+0x4d8)
#5 0x7fff8e93f220 getLHSKind
/<>/llvm/include/llvm/ADT/Twine.h:239:42
#6 0x7fff8e93f220 isNull
/<>/llvm/include/llvm/ADT/Twine.h:189:14
#7 0x7fff8e93f220 concat
/<>/llvm/include/llvm/ADT/Twine.h:490:9
#8 0x7fff8e93f220 llvm::operator+(llvm::Twine const&, llvm::Twine const&)
/<>/llvm/include/llvm/ADT/Twine.h:518:16
#9 0x7fff8ee621e0
llvm::TargetLoweringBase::computeRegisterProperties(llvm::TargetRegisterInfo const*)
/<>/llvm/lib/CodeGen/TargetLoweringBase.cpp:1260:42
#10 0x7fff909186cc llvm::PPCTargetLowering::PPCTargetLowering(llvm::PPCTargetMachine
const&, llvm::PPCSubtarget const&)
/<>/llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1204:3
#11 0x7fff90984ae0 llvm::PPCSubtarget::PPCSubtarget(llvm::Triple const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, llvm::PPCTargetMachine const&)
/<>/llvm/lib/Target/PowerPC/PPCSubtarget.cpp:60:25
#12 0x7fff90986448 make_unique &, std::__cxx11::basic_string, const llvm::PPCTargetMachine
&> /<>/llvm/include/llvm/ADT/STLExtras.h:1406:33
#13 0x7fff90986448 llvm::PPCTargetMachine::getSubtargetImpl(llvm::Function const&)
const /<>/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:331:9
#14 0x7fff90986654 PPCTTIImpl
/<>/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h:40:59
#15 0x7fff90986654 llvm::PPCTargetMachine::getTargetTransformInfo(llvm::Function
const&) /<>/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:520:30
#16 0x7fff8ff1ce3c operator()
/<>/llvm/lib/Target/TargetMachine.cpp:283:48
#17 0x7fff8ff1ce3c __invoke_impl>/llvm/lib/Target/TargetMachine.cpp:283:7) &, const llvm::Function
&> /usr/lib/gcc/powerpc64le-linux-gnu/10/../../../../include/c++/10/bits/invoke.h:60:14
#18 0x7fff8ff1ce3c __invoke_r>/llvm/lib/Target/TargetMachine.cpp:283:7) &, const llvm::Function
&> /usr/lib/gcc/powerpc64le-linux-gnu/10/../../../../include/c++/10/bits/invoke.h:141:14
#19 0x7fff8ff1ce3c std::_Function_handler::_M_invoke(std::_Any_data
const&, llvm::Function const&)
/usr/lib/gcc/powerpc64le-linux-gnu/10/../../../../include/c++/10/bits/std_function.h:291:9
#20 0x7fff8fa3b0bc operator()
/usr/lib/gcc/powerpc64le-linux-gnu/10/../../../../include/c++/10/bits/std_function.h:622:14
#21 0x7fff8fa3b0bc run
/<>/llvm/lib/Analysis/TargetTransformInfo.cpp:1340:10
#22 0x7fff8fa3b0bc llvm::TargetTransformInfoWrapperPass::getTTI(llvm::Function const&)
/<>/llvm/lib/Analysis/TargetTransformInfo.cpp:1371:14
#23 0x7fff8f652254 (anonymous
namespace)::CFGSimplifyPass::runOnFunction(llvm::Function&)
/<>/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp:268:63
#24 0x7fff8eaa6874 llvm::FPPassManager::runOnFunction(llvm::Function&)
/<>/llvm/lib/IR/LegacyPassManager.cpp:1648:27
#25 0x7fff8eaa5cbc llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&)
/<>/llvm/lib/IR/LegacyPassManager.cpp:1585:44
#26 0x7fff8eaa5bdc llvm::legacy::FunctionPassManager::run(llvm::Function&)
/<>/llvm/lib/IR/LegacyPassManager.cpp:1510:15
#27 0x7fff9399c658 EmitAssembly
/<>/clang/lib/CodeGen/BackendUtil.cpp:887:27
#28 0x7fff9399c658 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::unique_ptrstd::default_delete >) /<>/clang/lib/CodeGen/BackendUtil.cpp:1498:15
#29 0x7fff93c1dfd0 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
/<>/clang/lib/CodeGen/CodeGenAction.cpp:303:7
#30 0x7fff92d17ad0 clang::ParseAST(clang::Sema&, bool, bool)
/<>/clang/lib/Parse/ParseAST.cpp:171:13
#31 0x7fff94312d28 clang::ASTFrontendAction::ExecuteAction()
/<>/clang/lib/Frontend/FrontendAction.cpp:1041:3
#32 0x7fff93c1cb84 clang::CodeGenAction::ExecuteAction()
/<>/clang/lib/CodeGen/CodeGenAction.cpp:1059:28
#33 0x7fff94312520 clang::FrontendAction::Execute()
/<>/clang/lib/Frontend/FrontendAction.cpp:934:8
#34 0x7fff942ca6d8 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
/<>/clang/lib/Frontend/CompilerInstance.cpp:944:33
#35 0x7fff9438fd80 clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
/<>/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:291:25
#36 0x100a1cdc cc1_main(llvm::ArrayRef, char const*, void*)
/<>/clang/tools/driver/cc1_main.cpp:249:15
#37 0x1009f6e0 ExecuteCC1Tool
/<>/clang/tools/driver/driver.cpp:309:12
#38