| commit | fe161b9d961218996a33cfec135d77bc8c96afc7 | [log] [tgz] |
|---|---|---|
| author | Rafael Espindola <rafael.espindola@gmail.com> | Wed Nov 22 19:59:05 2017 +0000 |
| committer | Rafael Espindola <rafael.espindola@gmail.com> | Wed Nov 22 19:59:05 2017 +0000 |
| tree | 9cd8e23ebd791271f08a1b3f199aad2bac03489a | |
| parent | 32c9de009a52a43db3a24c38f05d2543f3fd6911 [diff] |
Allow TempFile::discard to be called twice. We already allowed keep+discard. It is important to be able to discard a temporary if a rename fail. It is also convenient as it allows the use of RAII for discarding. Allow discarding twice for similar reasons. llvm-svn: 318867