mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-19 19:44:55 +00:00
fix an off-by-one error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96844 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -712,7 +712,7 @@ SDNode *SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
|
|||||||
if (RecNo & 128)
|
if (RecNo & 128)
|
||||||
RecNo = GetVBR(RecNo, MatcherTable, MatcherIndex);
|
RecNo = GetVBR(RecNo, MatcherTable, MatcherIndex);
|
||||||
|
|
||||||
assert(RecNo < RecordedNodes.size() && "Invalid CheckSame");
|
assert(RecNo < RecordedNodes.size() && "Invalid EmitNode");
|
||||||
Ops.push_back(RecordedNodes[RecNo]);
|
Ops.push_back(RecordedNodes[RecNo]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user