aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/Common/GlobalISel
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/TableGen/Common/GlobalISel')
-rw-r--r--llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
index a310fc8..6477589 100644
--- a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
+++ b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h
@@ -365,7 +365,7 @@ public:
/// has been already called. If any of the matchers are moved out, the group
/// becomes safe to destroy, but not safe to re-use for anything else.
iterator_range<std::vector<Matcher *>::iterator> matchers() {
- return make_range(Matchers.begin(), Matchers.end());
+ return Matchers;
}
size_t size() const { return Matchers.size(); }
bool empty() const { return Matchers.empty(); }
@@ -704,9 +704,7 @@ public:
return make_range(PhysRegOperands.begin(), PhysRegOperands.end());
}
- iterator_range<MatchersTy::iterator> insnmatchers() {
- return make_range(Matchers.begin(), Matchers.end());
- }
+ iterator_range<MatchersTy::iterator> insnmatchers() { return Matchers; }
bool insnmatchers_empty() const { return Matchers.empty(); }
void insnmatchers_pop_front();
};