Index: src/IceCfg.cpp |
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp |
index eace318238bdbc28c61e05fad28d411a84619f55..6e944ac0d08bd2746c6b454dc52415b892e73669 100644 |
--- a/src/IceCfg.cpp |
+++ b/src/IceCfg.cpp |
@@ -828,7 +828,7 @@ void Cfg::floatConstantCSE() { |
auto Current = Node->getInsts().begin(); |
auto End = Node->getInsts().end(); |
while (Current != End) { |
- CfgUnorderedMap<Constant *, CfgVector<Inst *>> FloatUses; |
+ CfgUnorderedMap<Constant *, CfgVector<InstList::iterator>> FloatUses; |
if (llvm::isa<InstCall>(iteratorToInst(Current))) { |
++Current; |
assert(Current != End); |
@@ -868,7 +868,7 @@ void Cfg::floatConstantCSE() { |
InstAssign::create(Node->getCfg(), NewVar, ConstCache[Pair.first]); |
Insts.insert(Pair.second[0], Assign); |
- for (auto *InstUse : Pair.second) { |
+ for (auto InstUse : Pair.second) { |
for (SizeT i = 0; i < InstUse->getSrcSize(); ++i) { |
if (auto *Const = llvm::dyn_cast<Constant>(InstUse->getSrc(i))) { |
if (Const == Pair.first) { |