Skip to content

Commit bd041f5

Browse files
author
Tony Tao
committed
add comment
1 parent e508384 commit bd041f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Support/VirtualOutputBackends.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ static sys::fs::OpenFlags generateFlagsFromConfig(OutputConfig Config) {
260260
OF |= sys::fs::OF_TextWithCRLF;
261261
else if (Config.getText())
262262
OF |= sys::fs::OF_Text;
263+
// Don't pass OF_Append if writting to temporary since OF_Append is
264+
// not Atomic Append
263265
if (Config.getAppend() && !Config.getAtomicWrite())
264266
OF |= sys::fs::OF_Append;
265267

0 commit comments

Comments
 (0)