diff --git a/mlir/include/mlir/LLVMIR/LLVMOps.td b/mlir/include/mlir/LLVMIR/LLVMOps.td index fed49d9c5773..f0b8caffe816 100644 --- a/mlir/include/mlir/LLVMIR/LLVMOps.td +++ b/mlir/include/mlir/LLVMIR/LLVMOps.td @@ -74,7 +74,7 @@ def LLVM_VoidResultTypeOpBuilder : OpBuilder< "Builder *builder, OperationState *result, Type resultType, " "ArrayRef operands, ArrayRef attributes = {}", [{ - auto llvmType = resultType.dyn_cast(); + auto llvmType = resultType.dyn_cast(); (void)llvmType; assert(llvmType && "result must be an LLVM type"); assert(llvmType.getUnderlyingType() && llvmType.getUnderlyingType()->isVoidTy() &&