Skip to content

Commit bccf2c8

Browse files
authored
[clang][RISCV] Fix the condition of checking signature in getIndex (#67403)
The current condition causes assert failing if try to add a new vendor vector file which only contains the same type signature.
1 parent 26d9f85 commit bccf2c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/utils/TableGen/RISCVVEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ unsigned SemaSignatureTable::getIndex(ArrayRef<PrototypeDescriptor> Signature) {
290290
return 0;
291291

292292
// Checking Signature already in table or not.
293-
if (Signature.size() < SignatureTable.size()) {
293+
if (Signature.size() <= SignatureTable.size()) {
294294
size_t Bound = SignatureTable.size() - Signature.size() + 1;
295295
for (size_t Index = 0; Index < Bound; ++Index) {
296296
if (equal(Signature.begin(), Signature.end(),

0 commit comments

Comments
 (0)