]> granicus.if.org Git - llvm/commitdiff
[llvm-lipo] Drop unneeded braces. NFC
authorShoaib Meenai <smeenai@fb.com>
Fri, 7 Jun 2019 20:52:17 +0000 (20:52 +0000)
committerShoaib Meenai <smeenai@fb.com>
Fri, 7 Jun 2019 20:52:17 +0000 (20:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362841 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-lipo/llvm-lipo.cpp

index 3cd3ad53a6ff07096d56867d18abce70eb60a72d..0dcbf1d1abf41a2749153277d98e06846e228971 100644 (file)
@@ -207,12 +207,11 @@ static void printArchOrUnknown(const MachOObjectFile *ObjectFile) {
   // Prints trailing space and unknown in this format for compatibility with
   // cctools lipo.
   const std::string ObjectArch = ObjectFile->getArchTriple().getArchName();
-  if (ObjectArch.empty()) {
+  if (ObjectArch.empty())
     outs() << "unknown(" << ObjectFile->getHeader().cputype << ","
            << ObjectFile->getHeader().cpusubtype << ") ";
-  } else {
+  else
     outs() << ObjectArch + " ";
-  }
 }
 
 LLVM_ATTRIBUTE_NORETURN