Skip to content

Commit 09d945d

Browse files
[ProfileData] Avoid repeated hash lookups (NFC) (#125464)
1 parent 22bc029 commit 09d945d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,9 @@ struct MCDCRecord {
541541

542542
std::string getConditionHeaderString(unsigned Condition) {
543543
std::ostringstream OS;
544-
OS << "Condition C" << Condition + 1 << " --> (";
545-
OS << CondLoc[Condition].first << ":" << CondLoc[Condition].second;
546-
OS << ")\n";
544+
const auto &[Line, Col] = CondLoc[Condition];
545+
OS << "Condition C" << Condition + 1 << " --> (" << Line << ":" << Col
546+
<< ")\n";
547547
return OS.str();
548548
}
549549

0 commit comments

Comments
 (0)