diff options
author | Daniel Jasper <djasper@google.com> | 2013-10-24 15:23:11 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-10-24 15:23:11 +0000 |
commit | 472da8644eaaef5911f29f8bff308e2f99c1df81 (patch) | |
tree | 2482492bf14ba86732bdef8a7d3170e3427830dc /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | e865d706782d296b4b546d6970d591569716e4da (diff) | |
download | llvm-472da8644eaaef5911f29f8bff308e2f99c1df81.zip llvm-472da8644eaaef5911f29f8bff308e2f99c1df81.tar.gz llvm-472da8644eaaef5911f29f8bff308e2f99c1df81.tar.bz2 |
clang-format: Properly reset nested AnnotatedLine structure.
This fixes llvm.org/PR17682.
Without this patch, the following code leads to invalid reads/writes:
DEBUG({
return aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
});
#if a
#else
#endif
Because of the #if-#else structure, the code is formatted and annotated
twice and becauce of the nested block, the annotated lines form a
hierarchical structure. This structure was not properly reset between
runs.
llvm-svn: 193352
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions