[BOLT] Use Optional::emplace to avoid move assignment. NFC
(cherry picked from commit 53113515cdaa19a86e4b807808b7b99dc1c91685)
This commit is contained in:
parent
095ea503dd
commit
e087912321
|
@ -1593,7 +1593,7 @@ void DwarfLineTable::emit(BinaryContext &BC, MCStreamer &Streamer) {
|
||||||
// Some versions of GCC output DWARF5 .debug_info, but DWARF4 or lower
|
// Some versions of GCC output DWARF5 .debug_info, but DWARF4 or lower
|
||||||
// .debug_line
|
// .debug_line
|
||||||
if (LineStrSection) {
|
if (LineStrSection) {
|
||||||
LineStr = MCDwarfLineStr(*BC.Ctx);
|
LineStr.emplace(*BC.Ctx);
|
||||||
parseAndPopulateDebugLineStr(*LineStrSection, *LineStr, BC, Streamer);
|
parseAndPopulateDebugLineStr(*LineStrSection, *LineStr, BC, Streamer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue