Add fake-use for variable in LLVMDialect.cpp to fix opt build.

--

PiperOrigin-RevId: 241620442
This commit is contained in:
River Riddle 2019-04-02 15:50:51 -07:00 committed by Mehdi Amini
parent e01cccf34a
commit e97ca1227a
1 changed files with 1 additions and 0 deletions

View 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();