[PATCH] D28977: [libFuzzer] Implement TmpDir() for Windows.
Adrian McCarthy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 23 08:41:52 PST 2017
amccarth added inline comments.
================
Comment at: lib/Fuzzer/FuzzerIOWindows.cpp:291
+std::string TmpDir() {
+ if (auto Env = getenv("TMP"))
+ return Env;
----------------
Consider using GetTempPath, which starts by looking at the TMP environment variable, but will also check for a temp directory setting in several other places.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa364992(v=vs.85).aspx
Repository:
rL LLVM
https://reviews.llvm.org/D28977
More information about the llvm-commits
mailing list