From 508bf67e2d95d296b1ac649c3c14155326c9253b Mon Sep 17 00:00:00 2001 From: kai Date: Sat, 29 Jun 2013 17:24:03 +0200 Subject: [PATCH] Fix a gcc 4.4.7 issue and an LLVM 3.4 oversight. --- driver/ldmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver/ldmd.cpp b/driver/ldmd.cpp index 510105ea..fe3d8d9a 100644 --- a/driver/ldmd.cpp +++ b/driver/ldmd.cpp @@ -93,7 +93,7 @@ std::string getEXESuffix() { #if _WIN32 return "exe"; #else - return StringRef(); + return llvm::StringRef(); #endif } #else @@ -115,7 +115,7 @@ static std::string prependMainExecutablePath(const std::string &ExeName, // Check the directory that the calling program is in. We can do // this if ProgramPath contains at least one / character, indicating that it // is a relative path to the executable itself. - llvm::SmallString<128> Result = ls::fs::getMainExecutable(Argv0, MainAddr); + llvm::SmallString<128> Result(ls::fs::getMainExecutable(Argv0, MainAddr)); sys::path::remove_filename(Result); if (!Result.empty()) {