From d388e930ce6d8aa1b47e0ce40017f6542887349e Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Tue, 10 Mar 2015 20:23:29 +0000 Subject: [PATCH] LoopAccessAnalysis: Silence -Wreturn-type diagnostic from GCC llvm-svn: 231836 --- llvm/lib/Analysis/LoopAccessAnalysis.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp index 7201a93..49bf9d6 100644 --- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp +++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp @@ -580,6 +580,7 @@ bool MemoryDepChecker::Dependence::isSafeForVectorization(DepType Type) { case BackwardVectorizableButPreventsForwarding: return false; } + llvm_unreachable("unexpected DepType!"); } bool MemoryDepChecker::Dependence::isInterestingDependence(DepType Type) { @@ -595,6 +596,7 @@ bool MemoryDepChecker::Dependence::isInterestingDependence(DepType Type) { case BackwardVectorizableButPreventsForwarding: return true; } + llvm_unreachable("unexpected DepType!"); } bool MemoryDepChecker::Dependence::isPossiblyBackward() const { @@ -610,6 +612,7 @@ bool MemoryDepChecker::Dependence::isPossiblyBackward() const { case BackwardVectorizableButPreventsForwarding: return true; } + llvm_unreachable("unexpected DepType!"); } bool MemoryDepChecker::couldPreventStoreLoadForward(unsigned Distance, -- 2.7.4