Skip to content

Commit 5311351

Browse files
committed
[BOLT] Use Optional::emplace to avoid move assignment. NFC
1 parent df87130 commit 5311351

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/lib/Core/DebugData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1593,7 +1593,7 @@ void DwarfLineTable::emit(BinaryContext &BC, MCStreamer &Streamer) {
15931593
// Some versions of GCC output DWARF5 .debug_info, but DWARF4 or lower
15941594
// .debug_line
15951595
if (LineStrSection) {
1596-
LineStr = MCDwarfLineStr(*BC.Ctx);
1596+
LineStr.emplace(*BC.Ctx);
15971597
parseAndPopulateDebugLineStr(*LineStrSection, *LineStr, BC, Streamer);
15981598
}
15991599

0 commit comments

Comments
 (0)