[llvm] r231836 - LoopAccessAnalysis: Silence -Wreturn-type diagnostic from GCC
David Majnemer
david.majnemer at gmail.com
Tue Mar 10 13:23:29 PDT 2015
Author: majnemer
Date: Tue Mar 10 15:23:29 2015
New Revision: 231836
URL: http://llvm.org/viewvc/llvm-project?rev=231836&view=rev
Log:
LoopAccessAnalysis: Silence -Wreturn-type diagnostic from GCC
Modified:
llvm/trunk/lib/Analysis/LoopAccessAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/LoopAccessAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LoopAccessAnalysis.cpp?rev=231836&r1=231835&r2=231836&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LoopAccessAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/LoopAccessAnalysis.cpp Tue Mar 10 15:23:29 2015
@@ -580,6 +580,7 @@ bool MemoryDepChecker::Dependence::isSaf
case BackwardVectorizableButPreventsForwarding:
return false;
}
+ llvm_unreachable("unexpected DepType!");
}
bool MemoryDepChecker::Dependence::isInterestingDependence(DepType Type) {
@@ -595,6 +596,7 @@ bool MemoryDepChecker::Dependence::isInt
case BackwardVectorizableButPreventsForwarding:
return true;
}
+ llvm_unreachable("unexpected DepType!");
}
bool MemoryDepChecker::Dependence::isPossiblyBackward() const {
@@ -610,6 +612,7 @@ bool MemoryDepChecker::Dependence::isPos
case BackwardVectorizableButPreventsForwarding:
return true;
}
+ llvm_unreachable("unexpected DepType!");
}
bool MemoryDepChecker::couldPreventStoreLoadForward(unsigned Distance,
More information about the llvm-commits
mailing list