Skip to content

Commit 2290580

Browse files
committed
nit: replace llvm::zip with llvm::zip_equal
1 parent cc0e132 commit 2290580

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,10 @@ static SmallVector<llvm::OperandBundleDef>
116116
convertOperandBundles(OperandRangeRange bundleOperands,
117117
ArrayRef<std::string> bundleTags,
118118
LLVM::ModuleTranslation &moduleTranslation) {
119-
assert(bundleOperands.size() == bundleTags.size() &&
120-
"operand bundles and tags do not match");
121-
122119
SmallVector<llvm::OperandBundleDef> bundles;
123120
bundles.reserve(bundleOperands.size());
124121

125-
for (auto [operands, tag] : llvm::zip(bundleOperands, bundleTags))
122+
for (auto [operands, tag] : llvm::zip_equal(bundleOperands, bundleTags))
126123
bundles.push_back(convertOperandBundle(operands, tag, moduleTranslation));
127124
return bundles;
128125
}

0 commit comments

Comments
 (0)