[TableGen] Remove unnecessary uses of make_range.
llvm-svn: 327785
diff --git a/llvm/utils/TableGen/CodeGenSchedule.cpp b/llvm/utils/TableGen/CodeGenSchedule.cpp
index 90ac856..59ea54f 100644
--- a/llvm/utils/TableGen/CodeGenSchedule.cpp
+++ b/llvm/utils/TableGen/CodeGenSchedule.cpp
@@ -746,7 +746,7 @@
if (InstDefs->empty())
PrintFatalError(InstRWDef->getLoc(), "No matching instruction opcodes");
- for (Record *InstDef : make_range(InstDefs->begin(), InstDefs->end())) {
+ for (Record *InstDef : *InstDefs) {
InstClassMapTy::const_iterator Pos = InstrClassMap.find(InstDef);
if (Pos == InstrClassMap.end())
PrintFatalError(InstDef->getLoc(), "No sched class for instruction.");
@@ -774,7 +774,7 @@
if (!RWDefs.empty()) {
const RecVec *OrigInstDefs = Sets.expand(RWDefs[0]);
unsigned OrigNumInstrs = 0;
- for (Record *OIDef : make_range(OrigInstDefs->begin(), OrigInstDefs->end())) {
+ for (Record *OIDef : *OrigInstDefs) {
if (InstrClassMap[OIDef] == OldSCIdx)
++OrigNumInstrs;
}