From c95cfa7758f9da89be51552843196a932dd579b5 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Fri, 8 Sep 2017 14:32:20 +0000 Subject: [PATCH] [SLP] Fix the warning about paths not returning the value, NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312793 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Vectorize/SLPVectorizer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index 53b1d871fa3..021936721d7 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -4711,8 +4711,9 @@ class HorizontalReduction { case RK_UMax: return 3; case RK_None: - llvm_unreachable("Reduction kind is not set"); + break; } + llvm_unreachable("Reduction kind is not set"); } /// Expected number of uses for reduction operations/reduced values. @@ -4728,8 +4729,9 @@ class HorizontalReduction { case RK_UMax: return 2; case RK_None: - llvm_unreachable("Reduction kind is not set"); + break; } + llvm_unreachable("Reduction kind is not set"); } /// Checks if instruction is associative and can be vectorized.