Skip to content

Commit 9a17a60

Browse files
[PowerPC] Use DenseMap::operator[] (NFC) (#107044)
1 parent a628bc3 commit 9a17a60

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/PowerPC/PPCFrameLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2424,8 +2424,7 @@ bool PPCFrameLowering::spillCalleeSavedRegisters(
24242424
// or two GPRs, so we need table to record information for later save/restore.
24252425
for (const CalleeSavedInfo &Info : CSI) {
24262426
if (Info.isSpilledToReg()) {
2427-
auto &SpilledVSR =
2428-
VSRContainingGPRs.FindAndConstruct(Info.getDstReg()).second;
2427+
auto &SpilledVSR = VSRContainingGPRs[Info.getDstReg()];
24292428
assert(SpilledVSR.second == 0 &&
24302429
"Can't spill more than two GPRs into VSR!");
24312430
if (SpilledVSR.first == 0)

0 commit comments

Comments
 (0)