aboutsummaryrefslogtreecommitdiff
path: root/lib/Format/Format.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r--lib/Format/Format.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp
index 8faa93cdc7..7a6b6e2081 100644
--- a/lib/Format/Format.cpp
+++ b/lib/Format/Format.cpp
@@ -808,9 +808,8 @@ private:
TokenAnnotation &Annotation = Annotations[i];
const FormatToken &Tok = Line.Tokens[i];
- if (getPrecedence(Tok) == prec::Assignment)
- IsRHS = true;
- else if (Tok.Tok.is(tok::kw_return))
+ if (getPrecedence(Tok) == prec::Assignment ||
+ Tok.Tok.is(tok::kw_return) || Tok.Tok.is(tok::kw_throw))
IsRHS = true;
if (Annotation.Type != TT_Unknown)