Skip to content

Commit f6a27f7

Browse files
committed
[clang][RISCV] Extend intrinsic size check variable from 16 -> 32 bits. NFC
We currently have over 67000 intrinsics, uint16_t will overflow.
1 parent 6568827 commit f6a27f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaRISCV.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ void RISCVIntrinsicManagerImpl::InitRVVIntrinsic(
399399
Record.HasFRMRoundModeOp);
400400

401401
// Put into IntrinsicList.
402-
uint16_t Index = IntrinsicList.size();
402+
uint32_t Index = IntrinsicList.size();
403403
assert(IntrinsicList.size() == (size_t)Index &&
404404
"Intrinsics indices overflow.");
405405
IntrinsicList.push_back({BuiltinName, Signature});

0 commit comments

Comments
 (0)