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:
8c5a449
)
[NFC] Remove unused variable
author
Vitaly Buka
<vitalybuka@google.com>
Mon, 14 Jun 2021 17:56:40 +0000
(10:56 -0700)
committer
Vitaly Buka
<vitalybuka@google.com>
Mon, 14 Jun 2021 17:57:26 +0000
(10:57 -0700)
To fix 'set but not used' warning on sanitizer-x86_64-linux-android bot.
clang/lib/Format/WhitespaceManager.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Format/WhitespaceManager.cpp
b/clang/lib/Format/WhitespaceManager.cpp
index
222c4c4
..
b079eac
100644
(file)
--- a/
clang/lib/Format/WhitespaceManager.cpp
+++ b/
clang/lib/Format/WhitespaceManager.cpp
@@
-1068,9
+1068,6
@@
void WhitespaceManager::alignArrayInitializersLeftJustified(
Changes[CellIter->Index].Spaces = CellDescs.InitialSpaces;
++CellIter;
for (auto i = 1U; i < CellDescs.CellCount; i++, ++CellIter) {
- unsigned NetWidth = 0U;
- if (isSplitCell(*CellIter))
- NetWidth = getNetWidth(Cells.begin(), CellIter, CellDescs.InitialSpaces);
auto MaxNetWidth = getMaximumNetWidth(
Cells.begin(), CellIter, CellDescs.InitialSpaces, CellDescs.CellCount);
auto ThisNetWidth =