We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 301e321 commit 6fd7d5aCopy full SHA for 6fd7d5a
llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
@@ -381,8 +381,10 @@ static void EndEmitFunction(raw_ostream &OS) {
381
382
void MatcherTableEmitter::EmitPatternMatchTable(raw_ostream &OS) {
383
384
- assert(isUInt<32>(VecPatterns.size()) &&
385
- "Using only 32 bits to encode offset into Pattern Table");
+ if (!isUInt<32>(VecPatterns.size()))
+ report_fatal_error("More patterns defined that can fit into 32-bit Pattern "
386
+ "Table index encoding");
387
+
388
assert(VecPatterns.size() == VecIncludeStrings.size() &&
389
"The sizes of Pattern and include vectors should be the same");
390
0 commit comments