diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-09-14 23:21:47 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-09-14 23:21:47 +0000 |
commit | 8b744546192440035ad3918e0b12b75a319562e2 (patch) | |
tree | ba974236ab22f23bed523c4726d03cdd19116726 /llvm/lib/Support/PathV2.cpp | |
parent | 801e06b768e05e916233bb4008192bded484f18a (diff) | |
download | bcm5719-llvm-8b744546192440035ad3918e0b12b75a319562e2.tar.gz bcm5719-llvm-8b744546192440035ad3918e0b12b75a319562e2.zip |
Update the comment for system_temp_directory() to indicate when it
will ignore the erasedOnReboot option, and properly escape the
backslash in "C:\TEMP". Thanks to Aaron and Francois.
llvm-svn: 139755
Diffstat (limited to 'llvm/lib/Support/PathV2.cpp')
-rw-r--r-- | llvm/lib/Support/PathV2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/PathV2.cpp b/llvm/lib/Support/PathV2.cpp index 4d969fe25f9..b7dfe4f9a5f 100644 --- a/llvm/lib/Support/PathV2.cpp +++ b/llvm/lib/Support/PathV2.cpp @@ -510,7 +510,7 @@ void system_temp_directory(bool erasedOnReboot, SmallVectorImpl<char> &result) { const char *DefaultResult; #ifdef LLVM_ON_WIN32 (void)erasedOnReboot; - DefaultResult = "C:\TEMP"; + DefaultResult = "C:\\TEMP"; #else if (erasedOnReboot) DefaultResult = "/tmp"; |