This is an archive of the discontinued LLVM Phabricator instance.

PR25356 - False positive with -Wreturn-stack-address
Needs ReviewPublic

Authored by nikola on Dec 16 2015, 2:39 PM.

Details

Reviewers
akyrtzi
rsmith
Summary

I'd say that test above the one I added also produces a false positive. I was under the impression that r-value won't bind to l-value and is safe to return, am I missing something?

Diff Detail

Event Timeline

nikola updated this revision to Diff 43066.Dec 16 2015, 2:39 PM
nikola retitled this revision from to PR25356 - False positive with -Wreturn-stack-address.
nikola updated this object.
nikola added reviewers: akyrtzi, rsmith.