projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abb3fa6
)
clang/lib/Rewrite/Rewriter.cpp: Don't try to rename opened files on Win32. Win32...
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Sun, 27 May 2012 12:59:58 +0000
(12:59 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Sun, 27 May 2012 12:59:58 +0000
(12:59 +0000)
llvm-svn: 157528
clang/lib/Rewrite/Rewriter.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Rewrite/Rewriter.cpp
b/clang/lib/Rewrite/Rewriter.cpp
index
a2d03a1
..
f7b0154
100644
(file)
--- a/
clang/lib/Rewrite/Rewriter.cpp
+++ b/
clang/lib/Rewrite/Rewriter.cpp
@@
-444,6
+444,10
@@
public:
if (!ok()) return;
FileStream->flush();
+#ifdef _WIN32
+ // Win32 does not allow rename/removing opened files.
+ FileStream.reset();
+#endif
if (llvm::error_code ec =
llvm::sys::fs::rename(TempFilename.str(), Filename)) {
AllWritten = false;