[NFC] Fix auto* warning (#135765)

This commit is contained in:
Iris 2025-04-15 17:14:39 +08:00 committed by GitHub
parent b4017d8142
commit 5307040473
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1090,7 +1090,7 @@ void State::addInfoFor(BasicBlock &BB) {
bool GuaranteedToExecute = true;
// Queue conditions and assumes.
for (Instruction &I : BB) {
if (auto Cmp = dyn_cast<ICmpInst>(&I)) {
if (auto *Cmp = dyn_cast<ICmpInst>(&I)) {
for (Use &U : Cmp->uses()) {
auto *UserI = getContextInstForUse(U);
auto *DTN = DT.getNode(UserI->getParent());