[llvm] 3a1eefa - [GlobalISel] Do not discard InstructionPattern::checkSemantics result
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 11 02:10:06 PDT 2023
Author: pvanhout
Date: 2023-08-11T11:09:54+02:00
New Revision: 3a1eefae4b2f79d266c3822e532044b5dd1a7bd8
URL: https://github.com/llvm/llvm-project/commit/3a1eefae4b2f79d266c3822e532044b5dd1a7bd8
DIFF: https://github.com/llvm/llvm-project/commit/3a1eefae4b2f79d266c3822e532044b5dd1a7bd8.diff
LOG: [GlobalISel] Do not discard InstructionPattern::checkSemantics result
Added:
Modified:
llvm/utils/TableGen/GlobalISelCombinerMatchTableEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/GlobalISelCombinerMatchTableEmitter.cpp b/llvm/utils/TableGen/GlobalISelCombinerMatchTableEmitter.cpp
index 3c0897728edfe9..90a868db9b84e1 100644
--- a/llvm/utils/TableGen/GlobalISelCombinerMatchTableEmitter.cpp
+++ b/llvm/utils/TableGen/GlobalISelCombinerMatchTableEmitter.cpp
@@ -1259,7 +1259,8 @@ class PatFragPattern : public InstructionPattern {
};
bool PatFragPattern::checkSemantics(ArrayRef<SMLoc> DiagLoc) {
- InstructionPattern::checkSemantics(DiagLoc);
+ if (!InstructionPattern::checkSemantics(DiagLoc))
+ return false;
for (const auto &[Idx, Op] : enumerate(Operands)) {
switch (PF.getParam(Idx).Kind) {
More information about the llvm-commits
mailing list