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 af2a596 commit d08e075Copy full SHA for d08e075
include/swift/SIL/SILCloner.h
@@ -384,6 +384,10 @@ SILCloner<ImplClass>::postProcess(SILInstruction *Orig,
384
SILInstruction *Cloned) {
385
assert((Orig->getDebugScope() ? Cloned->getDebugScope()!=nullptr : true) &&
386
"cloned function dropped debug scope");
387
+ // Remove any previous mappings for the Orig instruction.
388
+ // If this is not done and there is a mapping for Orig in the map already,
389
+ // then this new mapping will be silently ignored.
390
+ InstructionMap.erase(Orig);
391
InstructionMap.insert(std::make_pair(Orig, Cloned));
392
}
393
0 commit comments