aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/MemoryBuffer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-18 02:42:40 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-18 02:42:40 +0000
commit60f18ad8a5fa7d5b008a1fecf9a79b68883ca192 (patch)
tree7a5c2e3c69c51e073072e9dcf515033f1a794106 /lib/Support/MemoryBuffer.cpp
parent717b3f02ffea4d093e775c3ed3ceac08991dbca9 (diff)
downloadexternal_llvm-60f18ad8a5fa7d5b008a1fecf9a79b68883ca192.tar.gz
external_llvm-60f18ad8a5fa7d5b008a1fecf9a79b68883ca192.tar.bz2
external_llvm-60f18ad8a5fa7d5b008a1fecf9a79b68883ca192.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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186559 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/MemoryBuffer.cpp')
0 files changed, 0 insertions, 0 deletions