diff --git a/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td b/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td --- a/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td +++ b/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td @@ -762,7 +762,12 @@ let assemblyFormat = [{ $dest (`(` $destOperands^ `:` type($destOperands) `)`)? attr-dict }]; - let builders = [LLVM_TerminatorPassthroughOpBuilder]; + let builders = [ + OpBuilder<(ins "Block *":$dest), [{ + build($_builder, $_state, ValueRange(), dest); + }]>, + LLVM_TerminatorPassthroughOpBuilder + ]; } def LLVM_CondBrOp : LLVM_TerminatorOp<"cond_br", [AttrSizedOperandSegments, DeclareOpInterfaceMethods,