diff options
author | Daniel Jasper <djasper@google.com> | 2017-03-27 16:29:41 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2017-03-27 16:29:41 +0000 |
commit | 9c81a727eba60e6eece36e6e25ae76748c5f2a49 (patch) | |
tree | 1958b144605fb75f040ebe72b485822352e4c9a2 /llvm | |
parent | c512d44845a52b4ade20e42365ffd83889e62f85 (diff) | |
download | bcm5719-llvm-9c81a727eba60e6eece36e6e25ae76748c5f2a49.tar.gz bcm5719-llvm-9c81a727eba60e6eece36e6e25ae76748c5f2a49.zip |
Look through CXXBindTemporaryExprs when checking CXXFunctionCastExprs
for unused values.
This fixes a regression caused by r298676, where constructor calls to
classes with non-trivial dtor were marked as unused if the first
argument is an initializer list. This is inconsistent (as the test
shows) and also warns on a reasonbly common code pattern where people
just call constructors to create and immediately destroy an object.
llvm-svn: 298853
Diffstat (limited to 'llvm')
0 files changed, 0 insertions, 0 deletions