diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-18 02:42:40 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-18 02:42:40 +0000 |
commit | 9ed1761aea2189b6a55c14bcbdd1dd7f508031ea (patch) | |
tree | 0230e9931022968aab78ac23630a1cce5e0e85a6 /llvm/lib/Support/Unix/Program.inc | |
parent | 0dcefdfcab8975632c638a12bf252a38e9acd33b (diff) | |
download | bcm5719-llvm-9ed1761aea2189b6a55c14bcbdd1dd7f508031ea.tar.gz bcm5719-llvm-9ed1761aea2189b6a55c14bcbdd1dd7f508031ea.zip |
Fix a regression I introduced back in r178147.
We don't want cast and dyn_cast to work on temporaries. They don't extend
lifetime like a direct bind to a reference would, so they can introduce
hard to find bugs.
I added tests to make sure we don't regress this. Thanks to Eli Friedman for
noticing this and for his suggestions on how to test it.
llvm-svn: 186559
Diffstat (limited to 'llvm/lib/Support/Unix/Program.inc')
0 files changed, 0 insertions, 0 deletions