Squelch compilation warnings on Sparc
authorMisha Brukman <brukman+llvm@gmail.com>
Sun, 12 Sep 2004 23:01:24 +0000 (23:01 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Sun, 12 Sep 2004 23:01:24 +0000 (23:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16301 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-link/llvm-link.cpp

index a4a283ced0a00af00616c43d3333c97d5ebc060c..4fbeea85ddebb1d5597500c9313bd294d8c7d3b5 100644 (file)
@@ -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