Skip to content

Commit e087912

Browse files
MaskRaytru
authored andcommitted
[BOLT] Use Optional::emplace to avoid move assignment. NFC
(cherry picked from commit 5311351)
1 parent 095ea50 commit e087912

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)