Fix another assert failure very similar to PR16651's test case. This
[oota-llvm.git] / lib / Transforms / Scalar / SROA.cpp
index 7235c0d6f22e2ada00a6541b07f709665d1bd907..5d7fa4b01f9d4e9350d46c5817777d34d4ed1288 100644 (file)
@@ -1539,6 +1539,8 @@ static bool isVectorPromotionViableForSlice(
     }
     if (!canConvertValue(DL, STy, SliceTy))
       return false;
+  } else {
+    return false;
   }
 
   return true;