Skip to content

Commit f1499ec

Browse files
Address a comment.
1 parent c9bb1d8 commit f1499ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/CodeGen/MachineDebugify.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ bool applyDebugifyMetadataToMachineFunction(MachineModuleInfo &MMI,
127127
if (It == Line2Var.end()) {
128128
Line = EarliestDVI ? EarliestDVI->getDebugLoc().getLine()
129129
: EarliestDVR->getDebugLoc().getLine();
130-
It = Line2Var.try_emplace(Line).first;
130+
It = Line2Var.find(Line);
131+
assert(It != Line2Var.end());
131132
}
132133
DILocalVariable *LocalVar = It->second;
133134
assert(LocalVar && "No variable for current line?");

0 commit comments

Comments
 (0)