Skip to content

Commit b5771d8

Browse files
committed
use Value type
1 parent e042918 commit b5771d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/IR/Verifier.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3662,9 +3662,9 @@ void Verifier::visitCallBase(CallBase &Call) {
36623662

36633663
while (!PHIWorkList.empty()) {
36643664
const auto *PhiI = PHIWorkList.pop_back_val();
3665-
for (const auto &Op : PhiI->incoming_values()) {
3666-
const auto *NextPhiI = dyn_cast<PHINode>(Op.get());
3667-
if (Values.insert(Op.get()) && NextPhiI)
3665+
for (const Value *Op : PhiI->incoming_values()) {
3666+
const auto *NextPhiI = dyn_cast<PHINode>(Op);
3667+
if (Values.insert(Op) && NextPhiI)
36683668
PHIWorkList.push_back(NextPhiI);
36693669
}
36703670
}

0 commit comments

Comments
 (0)