================
@@ -155,6 +155,9 @@ BinaryContext::BinaryContext(std::unique_ptr<MCContext> Ctx,
STI(std::move(STI)), InstPrinter(std::move(InstPrinter)),
MIA(std::move(MIA)), MIB(std::move(MIB)), MRI(std::move(MRI)),
DisAsm(std::move(DisAsm)), Logger(Logger), InitialDynoStats(isAArch64())
{
+ // createMCAsmInfo stored a pointer to a local MCTargetOptions in MCAsmInfo.
+ // Update it to point to our member that will outlive MCAsmInfo.
+ const_cast<MCAsmInfo *>(this->AsmInfo.get())->setTargetOptions(MCOptions);
----------------
boomanaiden154 wrote:
Is there really no way to avoid this?
https://github.com/llvm/llvm-project/pull/180464
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits