Introduced in r197900.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197906
91177308-0d34-0410-b5e6-
96231b3b80d8
// }];
// Thus, we set LastSpace of the next higher ParenLevel, to which we move
// when we consume all of the "}"'s FakeRParens at the "{".
- State.Stack[State.Stack.size() - 2].LastSpace = ContinuationIndent;
+ if (State.Stack.size() > 1)
+ State.Stack[State.Stack.size() - 2].LastSpace = ContinuationIndent;
} else if (Current.Type == TT_CtorInitializerColon) {
State.Column = State.FirstIndent + Style.ConstructorInitializerIndentWidth;
} else if (Current.Type == TT_CtorInitializerComma) {