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 @@ -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,
You can’t perform that action at this time.
0 commit comments