[CodeGen] Reuse stack space from unused function results (with more accurate unused...
authorLeny Kholodov <lkholodov@accesssoftek.com>
Mon, 8 Jun 2015 10:23:49 +0000 (10:23 +0000)
committerLeny Kholodov <lkholodov@accesssoftek.com>
Mon, 8 Jun 2015 10:23:49 +0000 (10:23 +0000)
commit6aab1117e859b6cb0cc9a4753481a8ef563cf871
tree3af9f3f6da73d56642fae02f356545bd862964ce
parentc789e1d57bb9e4513dc212d1558e4c49bc88f8f5
[CodeGen] Reuse stack space from unused function results (with more accurate unused result detection)

This patch fixes issues with unused result detection which were found in patch http://reviews.llvm.org/D9743.

Differential Revision: http://reviews.llvm.org/D10042

llvm-svn: 239294
clang/lib/CodeGen/CGCall.cpp
clang/lib/CodeGen/CGCall.h
clang/lib/CodeGen/CGExprAgg.cpp
clang/test/CodeGenCXX/stack-reuse-miscompile.cpp [new file with mode: 0644]
clang/test/CodeGenCXX/stack-reuse.cpp [new file with mode: 0644]