diff options
| author | Zinovy Nis <zinovy.nis@gmail.com> | 2018-05-22 17:24:28 +0000 |
|---|---|---|
| committer | Zinovy Nis <zinovy.nis@gmail.com> | 2018-05-22 17:24:28 +0000 |
| commit | 9bfe932c541cdbe8978f399e79ec95bb61e94f71 (patch) | |
| tree | 5bce27df82899cc575af169fd9a60c6ccadf1493 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h | |
| parent | 65a91288fcbf128538bd1bd227de5f8bb29784b5 (diff) | |
| download | bcm5719-llvm-9bfe932c541cdbe8978f399e79ec95bb61e94f71.tar.gz bcm5719-llvm-9bfe932c541cdbe8978f399e79ec95bb61e94f71.zip | |
[clang-tidy] SimplifyBoolenExpr doesn't add parens if unary negotiation is of ExprWithCleanups type
bool foo(A &S) {
if (S != (A)S)
return false;
return true;
}
is fixed into (w/o this patch)
...
return !S != (A)S; // negotiation affects first operand only
}
instead of (with this patch)
...
return S == (A)S; // note == instead of !=
}
Differential Revision: https://reviews.llvm.org/D47122
llvm-svn: 333003
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h')
0 files changed, 0 insertions, 0 deletions

