summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2017-03-27 16:29:41 +0000
committerDaniel Jasper <djasper@google.com>2017-03-27 16:29:41 +0000
commit9c81a727eba60e6eece36e6e25ae76748c5f2a49 (patch)
tree1958b144605fb75f040ebe72b485822352e4c9a2 /llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
parentc512d44845a52b4ade20e42365ffd83889e62f85 (diff)
downloadbcm5719-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/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud