Do not use "else" when both branches return (NFC)
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 27 Oct 2015 08:12:08 +0000 (08:12 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 27 Oct 2015 08:12:08 +0000 (08:12 +0000)
From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251398 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp

index 4ec8711fa330471a496c4e9f67e863d4972fc4ee..f98b801e0ae72a1d6d821a02643e04131c0ddef3 100644 (file)
@@ -219,9 +219,8 @@ SDValue VectorLegalizer::LegalizeOp(SDValue Op) {
             assert(Result.getValue(1).use_empty() &&
                    "There are still live users of the old chain!");
             return LegalizeOp(Lowered);
-          } else {
-            return TranslateLegalizeResults(Op, Lowered);
           }
+          return TranslateLegalizeResults(Op, Lowered);
         }
       case TargetLowering::Expand:
         Changed = true;