summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2019-10-24 18:45:49 -0700
committerDavid Blaikie <dblaikie@gmail.com>2019-10-24 18:56:45 -0700
commit0e8fc21c2ec780297dfd7fd643b171857c45d7a3 (patch)
tree15a011e9e54f477962a0fd6618aacbb243590231 /llvm/lib/Analysis/ScalarEvolution.cpp
parent81c2a5bb39c22011921f67a59568aa593821b42e (diff)
downloadbcm5719-llvm-0e8fc21c2ec780297dfd7fd643b171857c45d7a3.tar.gz
bcm5719-llvm-0e8fc21c2ec780297dfd7fd643b171857c45d7a3.zip
Fix Clang -Wcovered-switch-default warning by moving llvm_unreachable default to after the switch
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index f2c2df4879f..bfb0c0dfb60 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -6607,10 +6607,8 @@ const SCEV *ScalarEvolution::getExitCount(const Loop *L,
return getBackedgeTakenInfo(L).getExact(ExitingBlock, this);
case ConstantMaximum:
return getCouldNotCompute();
- default:
- llvm_unreachable("Impossible case!");
};
-
+ llvm_unreachable("Invalid ExitCountKind!");
}
const SCEV *
@@ -6626,9 +6624,8 @@ const SCEV *ScalarEvolution::getBackedgeTakenCount(const Loop *L,
return getBackedgeTakenInfo(L).getExact(L, this);
case ConstantMaximum:
return getBackedgeTakenInfo(L).getMax(this);
- default:
- llvm_unreachable("Impossible case!");
};
+ llvm_unreachable("Invalid ExitCountKind!");
}
bool ScalarEvolution::isBackedgeTakenCountMaxOrZero(const Loop *L) {
OpenPOWER on IntegriCloud