optimize out a temporary sys::Path

llvm-svn: 123359
This commit is contained in:
Chris Lattner 2011-01-13 01:35:58 +00:00
parent 026d152e58
commit 8cf302a1e7
1 changed files with 2 additions and 3 deletions

View File

@ -1324,10 +1324,9 @@ Linux::Linux(const HostInfo &Host, const llvm::Triple &Triple)
Lib32 = "lib32";
std::string Lib64 = "lib";
llvm::sys::Path Lib64Path("/lib64");
bool Symlink;
if (!llvm::sys::fs::exists(Lib64Path.str(), Exists) && Exists &&
(llvm::sys::fs::is_symlink(Lib64Path.str(), Symlink) || !Symlink))
if (!llvm::sys::fs::exists("/lib64", Exists) && Exists &&
(llvm::sys::fs::is_symlink("/lib64", Symlink) || !Symlink))
Lib64 = "lib64";
std::string GccTriple = "";