Skip to content

Commit

Permalink
[BOLT] Use Optional::emplace to avoid move assignment. NFC
Browse files Browse the repository at this point in the history
(cherry picked from commit 5311351)
  • Loading branch information
MaskRay authored and tru committed Aug 16, 2022
1 parent 095ea50 commit e087912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bolt/lib/Core/DebugData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e087912

Please sign in to comment.