mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 23:57:48 +00:00
[llvm-exegesis] Fix off by one error
llvm-svn: 344731
This commit is contained in:
parent
802e3095ab
commit
6efd85afac
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user