Index: src/IceOperand.cpp |
diff --git a/src/IceOperand.cpp b/src/IceOperand.cpp |
index fc2a7caa0b91000c7798428c2365deec4657afe3..63571290411020576bac28cfa8e83fe6c1569ca1 100644 |
--- a/src/IceOperand.cpp |
+++ b/src/IceOperand.cpp |
@@ -293,7 +293,8 @@ void VariablesMetadata::addNode(CfgNode *Node) { |
if (Func->getNumVariables() >= Metadata.size()) |
Metadata.resize(Func->getNumVariables()); |
- for (InstPhi *I : Node->getPhis()) { |
+ for (auto I = Node->getPhis().begin(), E = Node->getPhis().end(); I != E; |
+ ++I) { |
if (I->isDeleted()) |
continue; |
if (Variable *Dest = I->getDest()) { |