Skip to content

Commit 32a33eb

Browse files
committed
AS
1 parent 0f5407c commit 32a33eb

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
@@ -1717,18 +1717,16 @@ bool GCNTargetMachine::parseMachineFunctionInfo(
17171717
}
17181718

17191719
auto setRegisterFlags = [&](const VRegInfo &Info) {
1720-
for (const auto &Flag : Info.Flags) {
1720+
for (uint8_t Flag : Info.Flags) {
17211721
MFI->setFlag(Info.VReg, Flag);
17221722
}
17231723
};
17241724

1725-
for (const auto &P : PFS.VRegInfosNamed) {
1726-
const VRegInfo &Info = *P.second;
1727-
setRegisterFlags(Info);
1725+
for (const auto &[_, Info] : PFS.VRegInfosNamed) {
1726+
setRegisterFlags(*Info);
17281727
}
1729-
for (const auto &P : PFS.VRegInfos) {
1730-
const VRegInfo &Info = *P.second;
1731-
setRegisterFlags(Info);
1728+
for (const auto &[_, Info] : PFS.VRegInfos) {
1729+
setRegisterFlags(*Info);
17321730
}
17331731

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

0 commit comments

Comments
 (0)