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:
e33e36f
)
[ODG] Address compiler warnings of comparing signed and unsigned integer expressions
author
Lei Zhang
<antiagainst@google.com>
Mon, 10 Jun 2019 18:08:52 +0000
(11:08 -0700)
committer
Mehdi Amini
<joker.eph@gmail.com>
Tue, 11 Jun 2019 17:12:44 +0000
(10:12 -0700)
PiperOrigin-RevId:
252442613
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
7718a0d
..
8ae3e64
100644
(file)
--- a/
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
+++ b/
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
@@
-53,7
+53,7
@@
static const char *const builderOpState = "tblgen_state";
const char *valueRangeCalcCode = R"(
bool isVariadic[] = {{{0}};
int prevVariadicCount = 0;
- for (
int
i = 0; i < index; ++i)
+ for (
unsigned
i = 0; i < index; ++i)
if (isVariadic[i]) ++prevVariadicCount;
// Calculate how many dynamic values a static variadic {5} corresponds to.