Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | findDominatingStoreToReturn in CGCall.cpp didn't check if a candidate store | Jakub Kuderski | 2015-09-08 | 1 | -0/+17 |
instruction used the ReturnValue as pointer operand or value operand. This led to wrong code gen - in later stages (load-store elision code) the found store and its operand would be erased, causing ReturnValue to become a <badref>. The patch adds a check that makes sure that ReturnValue is a pointer operand of store instruction. Regression test is also added. This fixes PR24386. Differential Revision: http://reviews.llvm.org/D12400 llvm-svn: 247003 |