aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-10-24 15:23:11 +0000
committerDaniel Jasper <djasper@google.com>2013-10-24 15:23:11 +0000
commit472da8644eaaef5911f29f8bff308e2f99c1df81 (patch)
tree2482492bf14ba86732bdef8a7d3170e3427830dc /llvm/lib/Transforms/Utils/InlineFunction.cpp
parente865d706782d296b4b546d6970d591569716e4da (diff)
downloadllvm-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