We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b85f75f commit 34f87ebCopy full SHA for 34f87eb
lib/SIL/IR/SILModule.cpp
@@ -760,6 +760,12 @@ void SILModule::notifyAddedInstruction(SILInstruction *inst) {
760
761
void SILModule::notifyMovedInstruction(SILInstruction *inst,
762
SILFunction *fromFunction) {
763
+ for (auto &op : inst->getAllOperands()) {
764
+ if (auto *undef = dyn_cast<SILUndef>(op.get())) {
765
+ op.set(SILUndef::get(inst->getFunction(), undef->getType()));
766
+ }
767
768
+
769
inst->forEachDefinedLocalArchetype([&](CanLocalArchetypeType archeTy,
770
SILValue dependency) {
771
LocalArchetypeKey key = {archeTy, fromFunction};
0 commit comments