Index: src/IceCfg.cpp |
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp |
index 9a47dd668985387ee896ba7e047d3d5f88eb0ef9..f71737994aba701b4a75e6dcd296b11a5f66fed9 100644 |
--- a/src/IceCfg.cpp |
+++ b/src/IceCfg.cpp |
@@ -1102,7 +1102,7 @@ void Cfg::materializeVectorShuffles() { |
Instr.setDeleted(); |
auto &LoweringContext = getTarget()->getContext(); |
- LoweringContext.setInsertPoint(Instr); |
+ LoweringContext.setInsertPoint(instToIterator(&Instr)); |
LoweringContext.insert(ShuffleVector); |
} |
} |