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:
ce6ad67
)
Path::GetTemporaryDirectory(): Add an assertion if TempDirectory is alive, to check...
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Sun, 27 May 2012 13:02:04 +0000
(13:02 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Sun, 27 May 2012 13:02:04 +0000
(13:02 +0000)
llvm-svn: 157529
llvm/lib/Support/Windows/Path.inc
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/Windows/Path.inc
b/llvm/lib/Support/Windows/Path.inc
index
d8dc522
..
aab0dff
100644
(file)
--- a/
llvm/lib/Support/Windows/Path.inc
+++ b/
llvm/lib/Support/Windows/Path.inc
@@
-188,8
+188,10
@@
static Path *TempDirectory;
Path
Path::GetTemporaryDirectory(std::string* ErrMsg) {
- if (TempDirectory)
+ if (TempDirectory) {
+ assert(TempDirectory->exists() && "Who has removed TempDirectory?");
return *TempDirectory;
+ }
char pathname[MAX_PATH];
if (!GetTempPath(MAX_PATH, pathname)) {