From d11699d3c057129d0716fa548c67d1f62837f6b6 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Thu, 20 Jan 2011 07:22:04 +0000 Subject: [PATCH] llvm-nm: Fix warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123901 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-objdump/llvm-objdump.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/llvm-objdump/llvm-objdump.cpp b/tools/llvm-objdump/llvm-objdump.cpp index 0c966e26632..fa869cfb942 100644 --- a/tools/llvm-objdump/llvm-objdump.cpp +++ b/tools/llvm-objdump/llvm-objdump.cpp @@ -76,10 +76,10 @@ namespace { static const Target *GetTarget(const ObjectFile *Obj = NULL) { // Figure out the target triple. llvm::Triple TT("unknown-unknown-unknown"); - if (TripleName.empty()) + if (TripleName.empty()) { if (Obj) TT.setArch(Triple::ArchType(Obj->getArch())); - else + } else TT.setTriple(Triple::normalize(TripleName)); if (!ArchName.empty())