Avoid unused variable warning.
authorJacques Pienaar <jpienaar@google.com>
Mon, 27 May 2019 07:51:27 +0000 (00:51 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 03:04:13 +0000 (20:04 -0700)
--

PiperOrigin-RevId: 250109802

mlir/include/mlir/LLVMIR/LLVMOps.td

index fed49d9..f0b8caf 100644 (file)
@@ -74,7 +74,7 @@ def LLVM_VoidResultTypeOpBuilder : OpBuilder<
   "Builder *builder, OperationState *result, Type resultType, "
   "ArrayRef<Value *> operands, ArrayRef<NamedAttribute> attributes = {}",
   [{
-    auto llvmType = resultType.dyn_cast<LLVM::LLVMType>();
+    auto llvmType = resultType.dyn_cast<LLVM::LLVMType>(); (void)llvmType;
     assert(llvmType && "result must be an LLVM type");
     assert(llvmType.getUnderlyingType() &&
             llvmType.getUnderlyingType()->isVoidTy() &&