Add fake-use for variable in LLVMDialect.cpp to fix opt build.
authorRiver Riddle <riverriddle@google.com>
Tue, 2 Apr 2019 22:50:51 +0000 (15:50 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 2 Apr 2019 23:32:34 +0000 (16:32 -0700)
--

PiperOrigin-RevId: 241620442

mlir/lib/LLVMIR/IR/LLVMDialect.cpp

index a79c689..a28b3b8 100644 (file)
@@ -66,6 +66,7 @@ static void printLLVMBinaryOp(OpAsmPrinter *p, Operation *op) {
   // Fallback to the generic form if the op is not well-formed (may happen
   // during incomplete rewrites, and used for debugging).
   const auto *abstract = op->getAbstractOperation();
+  (void)abstract;
   assert(abstract && "pretty printing an unregistered operation");
 
   auto resultType = op->getResult(0)->getType();