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:
9edcd99
)
Make scope explicit to avoid misleading-indentation warnings.
author
Jacques Pienaar
<jpienaar@google.com>
Sat, 25 May 2019 18:03:25 +0000
(11:03 -0700)
committer
Mehdi Amini
<joker.eph@gmail.com>
Sun, 2 Jun 2019 03:03:02 +0000
(20:03 -0700)
--
PiperOrigin-RevId:
249986537
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
patch
|
blob
|
history
diff --git
a/mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
b/mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
index
5e1199f
..
3d5a3b9
100644
(file)
--- a/
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
+++ b/
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
@@
-946,12
+946,12
@@
void OpEmitter::genVerifier() {
&fctx.withSelf("this->getOperation()->get" +
Twine(isOperand ? "Operand" : "Result") +
"(" + Twine(index) + ")->getType()"))
- << "))\n";
+ << "))
{
\n";
body << " return emitOpError(\"" << (isOperand ? "operand" : "result")
<< " #" << index
<< (description.empty() ? " type precondition failed"
: " must be " + Twine(description))
- << "\");\n";
+ << "\");\n
}\n
";
}
};