Skip to content

Commit

Permalink
Add missing assert message
Browse files Browse the repository at this point in the history
  • Loading branch information
raccog committed Nov 6, 2023
1 parent 1761362 commit 51bf432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/isa/instruction.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ struct OpcodeSet {
/// Returns a pointer to a dynamically accessible OpPart. (needed for the
/// assembly matcher)
static std::unique_ptr<OpPartBase> GetOpPart(unsigned partIndex) {
assert(partIndex < NumParts());
assert(partIndex < NumParts() && "OpPart index out of range");

return IndexedOpPart<OpParts...>::GetOpPart(partIndex);
}
Expand Down

0 comments on commit 51bf432

Please sign in to comment.