[llvm] f57a1e9 - [TableGen] Fix variable name in CodeGenRegBank::computeComposites
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 6 07:42:44 PDT 2025
Author: Jay Foad
Date: 2025-06-06T15:42:37+01:00
New Revision: f57a1e973a5b7d84e4e42ad482130936519b99ef
URL: https://github.com/llvm/llvm-project/commit/f57a1e973a5b7d84e4e42ad482130936519b99ef
DIFF: https://github.com/llvm/llvm-project/commit/f57a1e973a5b7d84e4e42ad482130936519b99ef.diff
LOG: [TableGen] Fix variable name in CodeGenRegBank::computeComposites
Added:
Modified:
llvm/utils/TableGen/Common/CodeGenRegisters.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/Common/CodeGenRegisters.cpp b/llvm/utils/TableGen/Common/CodeGenRegisters.cpp
index 0e460613f9d39..a23222aa555aa 100644
--- a/llvm/utils/TableGen/Common/CodeGenRegisters.cpp
+++ b/llvm/utils/TableGen/Common/CodeGenRegisters.cpp
@@ -1471,10 +1471,10 @@ void CodeGenRegBank::computeComposites() {
RegMap C;
const RegMap &Img1 = SubRegAction.at(Sub1);
const RegMap &Img2 = SubRegAction.at(Sub2);
- for (auto [SRI, SubReg] : Img1) {
+ for (auto [R, SubReg] : Img1) {
auto F = Img2.find(SubReg);
if (F != Img2.end())
- C.insert({SRI, F->second});
+ C.insert({R, F->second});
}
return C;
};
More information about the llvm-commits
mailing list