Skip to content

Commit 6fd7d5a

Browse files
committed
fixup! [llvm-tblgen] Increase Coverage Index Size
1 parent 301e321 commit 6fd7d5a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/utils/TableGen/DAGISelMatcherEmitter.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,10 @@ static void EndEmitFunction(raw_ostream &OS) {
381381

382382
void MatcherTableEmitter::EmitPatternMatchTable(raw_ostream &OS) {
383383

384-
assert(isUInt<32>(VecPatterns.size()) &&
385-
"Using only 32 bits to encode offset into Pattern Table");
384+
if (!isUInt<32>(VecPatterns.size()))
385+
report_fatal_error("More patterns defined that can fit into 32-bit Pattern "
386+
"Table index encoding");
387+
386388
assert(VecPatterns.size() == VecIncludeStrings.size() &&
387389
"The sizes of Pattern and include vectors should be the same");
388390

0 commit comments

Comments
 (0)