Skip to content

Commit 6651bfa

Browse files
committed
AS
1 parent dea012a commit 6651bfa

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1713,18 +1713,16 @@ bool GCNTargetMachine::parseMachineFunctionInfo(
17131713
}
17141714

17151715
auto setRegisterFlags = [&](const VRegInfo &Info) {
1716-
for (const auto &Flag : Info.Flags) {
1716+
for (uint8_t Flag : Info.Flags) {
17171717
MFI->setFlag(Info.VReg, Flag);
17181718
}
17191719
};
17201720

1721-
for (const auto &P : PFS.VRegInfosNamed) {
1722-
const VRegInfo &Info = *P.second;
1723-
setRegisterFlags(Info);
1721+
for (const auto &[_, Info] : PFS.VRegInfosNamed) {
1722+
setRegisterFlags(*Info);
17241723
}
1725-
for (const auto &P : PFS.VRegInfos) {
1726-
const VRegInfo &Info = *P.second;
1727-
setRegisterFlags(Info);
1724+
for (const auto &[_, Info] : PFS.VRegInfos) {
1725+
setRegisterFlags(*Info);
17281726
}
17291727

17301728
auto parseAndCheckArgument = [&](const std::optional<yaml::SIArgument> &A,

0 commit comments

Comments
 (0)