klimek added inline comments.

================
Comment at: lib/Frontend/PrecompiledPreamble.cpp:470-471
+  int FD;
+  auto EC = llvm::sys::fs::createTemporaryFile(Prefix, Suffix, /*ref*/ FD,
+                                               /*ref*/ File);
   if (EC)
----------------
I don't understand that yet - why does keeping the file open around the EC 
check change any of the behavior?
Generally, both create the file, right? So only the first one should get no 
error?


https://reviews.llvm.org/D36529



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to