Skip to content

Commit

Permalink
[build system] add tablegen patch
Browse files Browse the repository at this point in the history
We need this patch to bypass the incorrect behaviour when running tablegen.
View details in llvm-project issue #68166.

Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin committed Nov 7, 2023
1 parent 5f026ce commit d42244a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions nix/tblgen.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/llvm/utils/TableGen/GlobalISelEmitter.cpp b/llvm/utils/TableGen/GlobalISelEmitter.cpp
index 8d9ded1b2ac5..e8765e8bc3c9 100644
--- a/llvm/utils/TableGen/GlobalISelEmitter.cpp
+++ b/llvm/utils/TableGen/GlobalISelEmitter.cpp
@@ -770,9 +770,6 @@ Expected<InstructionMatcher &> GlobalISelEmitter::createAndImportSelDAGMatcher(

if (Predicate.hasGISelPredicateCode()) {
if (Predicate.usesOperands()) {
- assert(WaitingForNamedOperands == 0 &&
- "previous predicate didn't find all operands or "
- "nested predicate that uses operands");
TreePattern *TP = Predicate.getOrigPatFragRecord();
WaitingForNamedOperands = TP->getNumArgs();
for (unsigned i = 0; i < WaitingForNamedOperands; ++i)

0 comments on commit d42244a

Please sign in to comment.