diff options
| author | Haojian Wu <hokein@google.com> | 2018-10-18 09:13:34 +0000 |
|---|---|---|
| committer | Haojian Wu <hokein@google.com> | 2018-10-18 09:13:34 +0000 |
| commit | 547f89d607044004969f2556e1d10770917b753d (patch) | |
| tree | a84dadc58e55668a8364289c0a037eeefbd8783b /llvm/unittests/Analysis/CGSCCPassManagerTest.cpp | |
| parent | 5ee0188f2b87c7600ab2fef8f630efb75aeb57d5 (diff) | |
| download | bcm5719-llvm-547f89d607044004969f2556e1d10770917b753d.tar.gz bcm5719-llvm-547f89d607044004969f2556e1d10770917b753d.zip | |
[clang-tidy] Ignore a case where the fix of make_unique check introduces side effect.
Summary:
Previously, ptr.reset(new char[5]) will be replaced with `p =
make_unique<char[]>(5)`, the fix has side effect -- doing
default initialization, it may cause performace regression (we are
bitten by this rececntly)
The check should be conservative for these cases.
Reviewers: alexfh
Subscribers: xazax.hun, cfe-commits
Differential Revision: https://reviews.llvm.org/D53377
llvm-svn: 344733
Diffstat (limited to 'llvm/unittests/Analysis/CGSCCPassManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions

