Index: src/IceOperand.cpp |
diff --git a/src/IceOperand.cpp b/src/IceOperand.cpp |
index b46c7f5142b79402eb05a9a1da765ef9e716f179..21a4830e7c12aefa86ec607fa23eac442e594dfe 100644 |
--- a/src/IceOperand.cpp |
+++ b/src/IceOperand.cpp |
@@ -329,7 +329,7 @@ void VariablesMetadata::addNode(CfgNode *Node) { |
Metadata[DestNum].markDef(Kind, &I, Node); |
} |
for (SizeT SrcNum = 0; SrcNum < I.getSrcSize(); ++SrcNum) { |
- if (const Variable *Var = llvm::dyn_cast<Variable>(I.getSrc(SrcNum))) { |
+ if (auto *Var = llvm::dyn_cast<Variable>(I.getSrc(SrcNum))) { |
SizeT VarNum = Var->getIndex(); |
assert(VarNum < Metadata.size()); |
constexpr bool IsImplicit = false; |