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:
16b0cc3
)
Fix unused variable warning with assertions disabled.
author
Alexander Kornienko
<alexfh@google.com>
Mon, 15 Apr 2013 15:47:34 +0000
(15:47 +0000)
committer
Alexander Kornienko
<alexfh@google.com>
Mon, 15 Apr 2013 15:47:34 +0000
(15:47 +0000)
llvm-svn: 179531
clang/lib/Format/Format.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Format/Format.cpp
b/clang/lib/Format/Format.cpp
index
f93509e
..
c5e1052
100644
(file)
--- a/
clang/lib/Format/Format.cpp
+++ b/
clang/lib/Format/Format.cpp
@@
-660,9
+660,10
@@
private:
Whitespaces);
}
TailOffset += Split.first + Split.second;
- unsigned OldRemainingLength = RemainingLength;
- RemainingLength = Token->getLineLengthAfterSplit(LineIndex, TailOffset);
- assert(RemainingLength < OldRemainingLength);
+ unsigned NewRemainingLength =
+ Token->getLineLengthAfterSplit(LineIndex, TailOffset);
+ assert(NewRemainingLength < RemainingLength);
+ RemainingLength = NewRemainingLength;
Penalty += Style.PenaltyExcessCharacter;
BreakInserted = true;
}