[PM/Unswitch] Fix unused variable in r336646.

llvm-svn: 336647
This commit is contained in:
Chandler Carruth 2018-07-10 08:57:04 +00:00
parent 47dc3a346e
commit 148861f579
1 changed files with 1 additions and 0 deletions

View File

@ -691,6 +691,7 @@ static bool unswitchTrivialSwitch(Loop &L, SwitchInst &SI, DominatorTree &DT,
for (auto Case : SI.cases()) {
assert(Case.getCaseSuccessor() == CommonSuccBB &&
"Non-common successor!");
(void)Case;
if (!SkippedFirst) {
SkippedFirst = true;
continue;