diff options
author | Chris Lattner <sabre@nondot.org> | 2011-01-13 01:35:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-01-13 01:35:58 +0000 |
commit | 48aef3625a0a80d044b40f872355990134ee7598 (patch) | |
tree | 78ad0c7e54b79a9c339bb78375600a8d9ba3945f /lib/Driver/ToolChains.cpp | |
parent | 62b1607e440b26f3683c92be887e8fd94af9c904 (diff) |
optimize out a temporary sys::Path
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123359 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r-- | lib/Driver/ToolChains.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 10062d7414..537372cb0b 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -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 = ""; |