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