diff options
author | Daniel Jasper <djasper@google.com> | 2017-08-25 19:14:53 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2017-08-25 19:14:53 +0000 |
commit | 4917af67b6a51b5df2f97e1c6e7ce3ee4899c4c8 (patch) | |
tree | 4eed8d73c9d6a8cdbaa73f2ecdae2094e53bb1f0 /llvm/lib/Transforms | |
parent | 61995364defde42d8dc472373d51f82c8bed90b7 (diff) | |
download | bcm5719-llvm-4917af67b6a51b5df2f97e1c6e7ce3ee4899c4c8.tar.gz bcm5719-llvm-4917af67b6a51b5df2f97e1c6e7ce3ee4899c4c8.zip |
[Format] Invert nestingAndIndentLevel pair in WhitespaceManager used for
alignments
Indent should be compared before nesting level to determine if a token
is on the same scope as the one we align with. Because it was inverted,
clang-format sometimes tried to align tokens with tokens from outer
scopes, causing the assert(Shift >= 0) to fire.
This fixes bug #33507. Patch by Beren Minor, thank you!
llvm-svn: 311792
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions