projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e01cccf
)
Add fake-use for variable in LLVMDialect.cpp to fix opt build.
author
River Riddle
<riverriddle@google.com>
Tue, 2 Apr 2019 22:50:51 +0000
(15:50 -0700)
committer
Mehdi 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
patch
|
blob
|
history
diff --git
a/mlir/lib/LLVMIR/IR/LLVMDialect.cpp
b/mlir/lib/LLVMIR/IR/LLVMDialect.cpp
index
a79c689
..
a28b3b8
100644
(file)
--- a/
mlir/lib/LLVMIR/IR/LLVMDialect.cpp
+++ b/
mlir/lib/LLVMIR/IR/LLVMDialect.cpp
@@
-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();