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:
d52b6c9
)
Fix opt build (unused variable in Linalg).
author
Andy Davis
<andydavis@google.com>
Mon, 15 Jul 2019 15:29:47 +0000
(08:29 -0700)
committer
Mehdi Amini
<joker.eph@gmail.com>
Tue, 16 Jul 2019 20:44:27 +0000
(13:44 -0700)
PiperOrigin-RevId:
258168108
mlir/lib/Linalg/Utils/Utils.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/Linalg/Utils/Utils.cpp
b/mlir/lib/Linalg/Utils/Utils.cpp
index
1f8187e
..
85b64db
100644
(file)
--- a/
mlir/lib/Linalg/Utils/Utils.cpp
+++ b/
mlir/lib/Linalg/Utils/Utils.cpp
@@
-154,6
+154,7
@@
mlir::linalg::getAssumedNonViewOperands(LinalgOp linalgOp) {
for (unsigned i = 0; i < nOperands; ++i) {
res.push_back(op->getOperand(numViews + i));
auto t = res.back()->getType();
+ (void)t;
assert((t.isIntOrIndexOrFloat() || t.isa<VectorType>()) &&
"expected scalar or vector type");
}