File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -688,16 +688,17 @@ void SystemZAsmPrinter::emitInstruction(const MachineInstr *MI) {
688688 int64_t SrcDisp = MI->getOperand (5 ).getImm ();
689689
690690 SystemZTargetStreamer *TS = getTargetStreamer ();
691- MCSymbol *DotSym = nullptr ;
692- MCInst ET = MCInstBuilder (TargetInsOpc).addReg (DestReg)
693- .addImm (DestDisp).addImm (1 ).addReg (SrcReg).addImm (SrcDisp);
691+ MCInst ET = MCInstBuilder (TargetInsOpc)
692+ .addReg (DestReg)
693+ .addImm (DestDisp)
694+ .addImm (1 )
695+ .addReg (SrcReg)
696+ .addImm (SrcDisp);
694697 SystemZTargetStreamer::MCInstSTIPair ET_STI (ET, &MF->getSubtarget ());
695- SystemZTargetStreamer::EXRLT2SymMap::iterator I =
696- TS->EXRLTargets2Sym .find (ET_STI);
697- if (I != TS->EXRLTargets2Sym .end ())
698- DotSym = I->second ;
699- else
700- TS->EXRLTargets2Sym [ET_STI] = DotSym = OutContext.createTempSymbol ();
698+ auto [It, Inserted] = TS->EXRLTargets2Sym .try_emplace (ET_STI);
699+ if (Inserted)
700+ It->second = OutContext.createTempSymbol ();
701+ MCSymbol *DotSym = It->second ;
701702 const MCSymbolRefExpr *Dot = MCSymbolRefExpr::create (DotSym, OutContext);
702703 EmitToStreamer (
703704 *OutStreamer,
You can’t perform that action at this time.
0 commit comments