aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorFelix Berger <flx@google.com>2021-05-24 09:45:24 -0400
committerFelix Berger <flx@google.com>2021-06-18 15:25:17 -0400
commitbdd5da9dec61072f693726d9ed2a94c78e431ba2 (patch)
tree500035edf1b6f6a94b64f7db40c63a020d462bd5 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentac87133f1de902bcc7ab4330e7ac79b2ba376d34 (diff)
downloadllvm-bdd5da9dec61072f693726d9ed2a94c78e431ba2.zip
llvm-bdd5da9dec61072f693726d9ed2a94c78e431ba2.tar.gz
llvm-bdd5da9dec61072f693726d9ed2a94c78e431ba2.tar.bz2
[clang-tidy] performance-unnecessary-copy-initialization: Directly examine the initializing var's initializer.
This fixes false positive cases where a reference is initialized outside of a block statement and then its initializing variable is modified. Another case is when the looped over container is modified. Differential Revision: https://reviews.llvm.org/D103021 Reviewed-by: ymandel
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions