summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-link
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-09-12 23:01:24 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-09-12 23:01:24 +0000
commitc3ba6e2f4b38562772d17e49282635419a5a5034 (patch)
treeff9b003d8ce2bace919a890b314328b3f01b94c0 /llvm/tools/llvm-link
parentafab5f9091c7294aa8938fd1970c5dfe139a6449 (diff)
downloadbcm5719-llvm-c3ba6e2f4b38562772d17e49282635419a5a5034.tar.gz
bcm5719-llvm-c3ba6e2f4b38562772d17e49282635419a5a5034.zip
Squelch compilation warnings on Sparc
llvm-svn: 16301
Diffstat (limited to 'llvm/tools/llvm-link')
-rw-r--r--llvm/tools/llvm-link/llvm-link.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-link/llvm-link.cpp b/llvm/tools/llvm-link/llvm-link.cpp
index a4a283ced0a..4fbeea85dde 100644
--- a/llvm/tools/llvm-link/llvm-link.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud