[SimplifyCFG] Remove unused variable. NFC. (#134211)

This commit is contained in:
Yingwei Zheng 2025-04-03 15:22:51 +08:00 committed by GitHub
parent 041e84261a
commit 73e1710a4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6228,7 +6228,6 @@ static bool initializeUniqueCases(SwitchInst *SI, PHINode *&PHI,
}
// Find the default result value.
SmallVector<std::pair<PHINode *, Constant *>, 1> DefaultResults;
BasicBlock *DefaultDest = SI->getDefaultDest();
getCaseResults(SI, nullptr, SI->getDefaultDest(), &CommonDest, DefaultResults,
DL, TTI);
// If the default value is not found abort unless the default destination