[BOLT] Use Optional::emplace to avoid move assignment. NFC

(cherry picked from commit 53113515cdaa19a86e4b807808b7b99dc1c91685)
This commit is contained in:
Fangrui Song 2022-08-12 12:51:50 -07:00 committed by Tobias Hieta
parent 095ea503dd
commit e087912321

View file

@ -1593,7 +1593,7 @@ void DwarfLineTable::emit(BinaryContext &BC, MCStreamer &Streamer) {
// Some versions of GCC output DWARF5 .debug_info, but DWARF4 or lower
// .debug_line
if (LineStrSection) {
LineStr = MCDwarfLineStr(*BC.Ctx);
LineStr.emplace(*BC.Ctx);
parseAndPopulateDebugLineStr(*LineStrSection, *LineStr, BC, Streamer);
}