Skip to content
  • Rafael Espindola's avatar
    Fix a regression I introduced back in r178147. · 9ed1761a
    Rafael Espindola authored
    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
    9ed1761a
Loading