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 | b312314cd7aaf8a4c3902aa28c8bc0a9662a8e9b (patch) | |
tree | c331c7ef76ca2e7a4ff00ef993924b3bcfdc8b24 /lib/Format/Format.cpp | |
parent | f681fa8238b82822a3d939f0e4df80660666f8b1 (diff) |
Fix incorrect comparison operator causing loooong formatting times.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172308 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r-- | lib/Format/Format.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index ec8b02ffca..61d2f7fb63 100644 --- a/lib/Format/Format.cpp +++ b/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; } }; |