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:
2adaca5
)
[Fix] Fix compilation warning on unused var.
author
rdzhabarov
<rdzhabarov@google.com>
Wed, 29 Jun 2022 19:47:57 +0000
(19:47 +0000)
committer
rdzhabarov
<rdzhabarov@google.com>
Wed, 29 Jun 2022 19:54:49 +0000
(19:54 +0000)
mlir/include/mlir/IR/AsmState.h
patch
|
blob
|
history
diff --git
a/mlir/include/mlir/IR/AsmState.h
b/mlir/include/mlir/IR/AsmState.h
index
b0458f5
..
df7e5c3
100644
(file)
--- a/
mlir/include/mlir/IR/AsmState.h
+++ b/
mlir/include/mlir/IR/AsmState.h
@@
-311,6
+311,7
@@
public:
void attachResourceParser(std::unique_ptr<AsmResourceParser> parser) {
StringRef name = parser->getName();
auto it = resourceParsers.try_emplace(name, std::move(parser));
+ (void)it;
assert(it.second &&
"resource parser already registered with the given name");
}