diff options
author | Felix Berger <flx@google.com> | 2021-05-24 09:45:24 -0400 |
---|---|---|
committer | Felix Berger <flx@google.com> | 2021-06-18 15:25:17 -0400 |
commit | bdd5da9dec61072f693726d9ed2a94c78e431ba2 (patch) | |
tree | 500035edf1b6f6a94b64f7db40c63a020d462bd5 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | ac87133f1de902bcc7ab4330e7ac79b2ba376d34 (diff) | |
download | llvm-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