aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopPeel.cpp
diff options
context:
space:
mode:
authorCJ Johnson <johnsoncj@google.com>2021-12-09 17:28:07 +0000
committerYitzhak Mandelbaum <yitzhakm@google.com>2021-12-09 17:41:12 +0000
commita1968d5341d7b1ec7889955f230d0375548d165b (patch)
tree96251a7c0e9fa4f2c779aee244630c8baa142979 /llvm/lib/Transforms/Utils/LoopPeel.cpp
parentccdd5bb2c2a80b9664e8f2e9e1abd80769f5c5a1 (diff)
downloadllvm-a1968d5341d7b1ec7889955f230d0375548d165b.zip
llvm-a1968d5341d7b1ec7889955f230d0375548d165b.tar.gz
llvm-a1968d5341d7b1ec7889955f230d0375548d165b.tar.bz2
Prevent abseil-cleanup-ctad check from stomping on surrounding context
This change applies two fixes to the abseil-cleanup-ctad check. It uses hasSingleDecl() to ensure only declStmt()s with one varDecl() are matched (leaving compount declStmt()s unchanged). It also addresses a bug in the handling of comments that surround the absl::MakeCleanup() calls by switching to the callArgs() combinator from Clang Transformer. Reviewed By: ymandel Differential Revision: https://reviews.llvm.org/D115452
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopPeel.cpp')
0 files changed, 0 insertions, 0 deletions