Merge pull request #11201 from JoshuaMKW/fix-instruction-patches MemoryPatches: Fix instruction patches