diff options
author | Krasimir Georgiev <krasimir@google.com> | 2017-05-18 15:16:24 +0000 |
---|---|---|
committer | Krasimir Georgiev <krasimir@google.com> | 2017-05-18 15:16:24 +0000 |
commit | 9f5608a862901d5f882caf6aa23832086593299b (patch) | |
tree | 3bcb38ae375ccbd2c31d71b07d4754d9391d0ef5 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | 8a7508970a57297bf6ae398c1abaae38535ebe8e (diff) | |
download | bcm5719-llvm-9f5608a862901d5f882caf6aa23832086593299b.tar.gz bcm5719-llvm-9f5608a862901d5f882caf6aa23832086593299b.zip |
[clang-format] Fix MatchingOpeningBlockLineIndex computation
Summary:
Computed line index must be relative to the current 'parent' node, and
thus use CurrentLines instead of Lines.
Without this, a child line's MatchingOpeningBlockLineIndex is out of
range of the parent's list of line, which can cause crash or unexpected
behavior if this field is used in childs.
Contributed by @Typz!
Reviewers: krasimir, djasper
Reviewed By: krasimir
Subscribers: cfe-commits, klimek
Differential Revision: https://reviews.llvm.org/D32524
llvm-svn: 303353
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions