Skip to content

Commit 1e03d06

Browse files
committed
Removed redundant verification code.
1 parent c67ab47 commit 1e03d06

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -589,10 +589,6 @@ LogicalResult SwitchOp::verify() {
589589
static_cast<int64_t>(getCaseDestinations().size())))
590590
return emitOpError("expects number of case values to match number of "
591591
"case destinations");
592-
if (getBranchWeights() && getBranchWeights()->size() != getNumSuccessors())
593-
return emitError("expects number of branch weights to match number of "
594-
"successors: ")
595-
<< getBranchWeights()->size() << " vs " << getNumSuccessors();
596592
if (getCaseValues() &&
597593
getValue().getType() != getCaseValues()->getElementType())
598594
return emitError("expects case value type to match condition value type");

0 commit comments

Comments
 (0)