[llvm-exegesis] Fix off by one error

llvm-svn: 344731
This commit is contained in:
Guillaume Chatelet 2018-10-18 08:20:50 +00:00
parent 4aaaaabe87
commit 6a208e8c5f
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ getOpcodesOrDie(const llvm::MCInstrInfo &MCInstrInfo) {
return {static_cast<unsigned>(OpcodeIndex)};
if (OpcodeIndex < 0) {
std::vector<unsigned> Result;
for (unsigned I = 1, E = MCInstrInfo.getNumOpcodes(); I <= E; ++I)
for (unsigned I = 1, E = MCInstrInfo.getNumOpcodes(); I < E; ++I)
Result.push_back(I);
return Result;
}