diff options
| author | Daniel Jasper <djasper@google.com> | 2013-01-12 07:36:22 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2013-01-12 07:36:22 +0000 |
| commit | 7b7877ad7d60993555240dd3ecf4d27d7bbb41ff (patch) | |
| tree | f8a23a8649b1de1c0519eb3d7d6f16a61559c4e0 /clang/lib | |
| parent | cb465dcb1dee305a5e0470486c0495d7a7da4a25 (diff) | |
| download | bcm5719-llvm-7b7877ad7d60993555240dd3ecf4d27d7bbb41ff.tar.gz bcm5719-llvm-7b7877ad7d60993555240dd3ecf4d27d7bbb41ff.zip | |
Fix incorrect comparison operator causing loooong formatting times.
llvm-svn: 172308
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Format/Format.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index ec8b02ffcad..61d2f7fb63f 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -282,7 +282,9 @@ private: return FirstLessLess < Other.FirstLessLess; if (BreakBeforeClosingBrace != Other.BreakBeforeClosingBrace) return BreakBeforeClosingBrace; - return BreakAfterComma; + if (BreakAfterComma != Other.BreakAfterComma) + return BreakAfterComma; + return false; } }; |

