File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments