Skip to content

Commit 083a87c

Browse files
committed
AS
1 parent f40babf commit 083a87c

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
@@ -1719,18 +1719,16 @@ bool GCNTargetMachine::parseMachineFunctionInfo(
17191719
}
17201720

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

1727-
for (const auto &P : PFS.VRegInfosNamed) {
1728-
const VRegInfo &Info = *P.second;
1729-
setRegisterFlags(Info);
1727+
for (const auto &[_, Info] : PFS.VRegInfosNamed) {
1728+
setRegisterFlags(*Info);
17301729
}
1731-
for (const auto &P : PFS.VRegInfos) {
1732-
const VRegInfo &Info = *P.second;
1733-
setRegisterFlags(Info);
1730+
for (const auto &[_, Info] : PFS.VRegInfos) {
1731+
setRegisterFlags(*Info);
17341732
}
17351733

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

0 commit comments

Comments
 (0)