From: David Blaikie Date: Mon, 28 Mar 2016 17:45:48 +0000 (+0000) Subject: Remove else after return X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b805f73ad1d75521f86cf2280837a0717f01b76b;p=platform%2Fupstream%2Fllvm.git Remove else after return llvm-svn: 264599 --- diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index 607c246..d9d19fa 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -2426,13 +2426,12 @@ ObjectFile::createMachOObjectFile(MemoryBufferRef Buffer) { StringRef Magic = Buffer.getBuffer().slice(0, 4); if (Magic == "\xFE\xED\xFA\xCE") return MachOObjectFile::create(Buffer, false, false); - else if (Magic == "\xCE\xFA\xED\xFE") + if (Magic == "\xCE\xFA\xED\xFE") return MachOObjectFile::create(Buffer, true, false); - else if (Magic == "\xFE\xED\xFA\xCF") + if (Magic == "\xFE\xED\xFA\xCF") return MachOObjectFile::create(Buffer, false, true); - else if (Magic == "\xCF\xFA\xED\xFE") + if (Magic == "\xCF\xFA\xED\xFE") return MachOObjectFile::create(Buffer, true, true); - //else return malformedError(Buffer.getBufferIdentifier(), "Unrecognized MachO magic number"); }