diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2004-12-15 04:08:15 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2004-12-15 04:08:15 +0000 |
commit | e4083418542a74570d20e1f476c3a5b1468a22e7 (patch) | |
tree | 165cb212e95679ee945efcff3248646201792cde /llvm/lib/System/Win32/Path.cpp | |
parent | 527ac0a1c7e8df79acdb2a4ceb4c664c380286d2 (diff) | |
download | bcm5719-llvm-e4083418542a74570d20e1f476c3a5b1468a22e7.tar.gz bcm5719-llvm-e4083418542a74570d20e1f476c3a5b1468a22e7.zip |
Fix VC++ compilation errors
llvm-svn: 18953
Diffstat (limited to 'llvm/lib/System/Win32/Path.cpp')
-rw-r--r-- | llvm/lib/System/Win32/Path.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/System/Win32/Path.cpp b/llvm/lib/System/Win32/Path.cpp index 149b4a1295d..24cfc465181 100644 --- a/llvm/lib/System/Win32/Path.cpp +++ b/llvm/lib/System/Win32/Path.cpp @@ -180,11 +180,6 @@ Path::GetLLVMDefaultConfigDir() { } Path -Path::GetLLVMConfigDir() { - return GetLLVMDefaultConfigDir(); -} - -Path Path::GetUserHomeDirectory() { const char* home = getenv("HOME"); if (home) { @@ -600,7 +595,7 @@ Path::makeUnique() { dir.elideFile(); std::string fname = this->getLast(); - char* newName = alloca(MAX_PATH+1); + char newName[MAX_PATH + 1]; if (!GetTempFileName(dir.c_str(), fname.c_str(), 0, newName)) ThrowError("Cannot make unique filename for '" + path + "'"); |