commit | 9cca68dbfc42f7778f8db0bcfe8b3e575599ac0f | [log] [tgz] |
---|---|---|
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Thu Jul 21 18:44:49 2011 +0000 |
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Thu Jul 21 18:44:49 2011 +0000 |
tree | 9216dcd89d3be88e2d46e89c4be668585d975204 | |
parent | bc9d5a3ace7cb75e4bff3dd4a3999a3fc04f4d45 [diff] |
For ASTUnit::Save, write the AST to a temporary and then rename it to the actual filename. Should avoid race conditions. Addresses rdar://9788943. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135691 91177308-0d34-0410-b5e6-96231b3b80d8