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:
b737b81
)
[mlir][AffineStructures] Explicitly initialize variables to avoid use of uninitialize...
author
River Riddle
<riddleriver@gmail.com>
Thu, 30 Apr 2020 19:08:53 +0000
(12:08 -0700)
committer
River Riddle
<riddleriver@gmail.com>
Thu, 30 Apr 2020 19:12:42 +0000
(12:12 -0700)
mlir/lib/Analysis/AffineStructures.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/Analysis/AffineStructures.cpp
b/mlir/lib/Analysis/AffineStructures.cpp
index
17e380d
..
b43cd6b
100644
(file)
--- a/
mlir/lib/Analysis/AffineStructures.cpp
+++ b/
mlir/lib/Analysis/AffineStructures.cpp
@@
-2075,7
+2075,7
@@
Optional<int64_t> FlatAffineConstraints::getConstantBoundOnDimSize(
/*num=*/getNumDimIds());
Optional<int64_t> minDiff = None;
- unsigned minLbPosition
, minUbPosition
;
+ unsigned minLbPosition
= 0, minUbPosition = 0
;
for (auto ubPos : ubIndices) {
for (auto lbPos : lbIndices) {
// Look for a lower bound and an upper bound that only differ by a