mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 04:46:27 +08:00
optimize out a temporary sys::Path
llvm-svn: 123359
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user