diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2004-09-12 23:01:24 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-09-12 23:01:24 +0000 |
commit | a6bcd83854d08fa89a27b4ab8f93241d6365b458 (patch) | |
tree | 2ce25fede0ca6a8261e505c47fe070e5f83f751b /tools/llvm-link/llvm-link.cpp | |
parent | 27bdcd8b578d3f8c6f4c8c44106dc000be927564 (diff) |
Squelch compilation warnings on Sparc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-link/llvm-link.cpp')
-rw-r--r-- | tools/llvm-link/llvm-link.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp index a4a283ced0..4fbeea85dd 100644 --- a/tools/llvm-link/llvm-link.cpp +++ b/tools/llvm-link/llvm-link.cpp @@ -151,7 +151,7 @@ static inline bool LoadLibrary(const std::string &FN, Module*& Result) { } if (Filename.readable() && Filename.is_bytecode_file()) { - if (Result = GetModule(Filename)) + if ((Result = GetModule(Filename))) return true; } @@ -161,7 +161,7 @@ static inline bool LoadLibrary(const std::string &FN, Module*& Result) { sys::Path path = GetPathForLinkageItem(FN,LibPaths[I]); if (!path.is_empty()) { if (path.is_bytecode_file()) { - if (Result = GetModule(path)) { + if ((Result = GetModule(path))) { return true; } else { // We found file but its not a valid bytecode file so we |