llvm-mirror/unittests
Rafael Espindola 9e2da8f46a 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
2013-07-18 02:42:40 +00:00
..
ADT Handle '.' correctly in hex float literal parsing. 2013-07-17 22:17:29 +00:00
Analysis
Bitcode llvm/unittests: Use OwningPtr to fix --vg-leak. 2013-01-23 08:33:13 +00:00
DebugInfo Create a stub for DWARF parser unittests 2013-04-17 08:29:02 +00:00
ExecutionEngine Convert Windows to Unix line endings, no functionality change. 2013-07-13 22:08:55 +00:00
IR Fix copypaste error in test. 2013-06-28 23:24:10 +00:00
Object Attempt at fixing a mingw bot. 2013-07-13 12:36:30 +00:00
Option llvm/unittests: Use OwningPtr to fix --vg-leak. 2013-01-23 08:33:13 +00:00
Support Fix a regression I introduced back in r178147. 2013-07-18 02:42:40 +00:00
Transforms Make SpecialCaseList match full strings, as documented, using anchors. 2013-07-16 17:56:07 +00:00
CMakeLists.txt Make BinaryRef output correctly in case of empty data. 2013-07-09 00:54:46 +00:00
Makefile Make BinaryRef output correctly in case of empty data. 2013-07-09 00:54:46 +00:00
Makefile.unittest