Revision fc8ddcfbccb1d3da7fb81bf9a5f97e7797a7cd11 authored by Slava Pestov on 20 January 2016, 08:51:11 UTC, committed by Slava Pestov on 20 January 2016, 08:55:05 UTC
With an upcoming patch we would call setMutating() on materializeForSet
before computing the setter's isMutating() in the case where a setter
was explicitly declared 'nonmutating'.

Fix that by replacing the setter->isMutating() call with a direct
computation of the expected result.

It seems that the materializeForSet of protocol protocol requirements
has to be mutating, even if the protocol is a class protocol or the
property is nonmutating -- I need to investigate why and fix SILGen
to not make this assumption, but in the meantime, opt-out of the
new logic with protocol requirements to avoid more breakage.
1 parent 1ba8f45
History
File Mode Size
0001-rdar19792730.swift -rw-r--r-- 569 bytes
0003-rdar20564378.swift -rw-r--r-- 4.3 KB
0004-rdar20564605.swift -rw-r--r-- 4.5 KB
0006-rdar20588474.swift -rw-r--r-- 4.3 KB
0007-rdar20750480.swift -rw-r--r-- 157 bytes
0008-rdar18796397.swift -rw-r--r-- 358 bytes
0009-rdar18996669.swift -rw-r--r-- 401 bytes
0010-rdar20638881.swift -rw-r--r-- 4.3 KB
0011-rdar20985062.swift -rw-r--r-- 274 bytes
0011-rdar21042357.swift -rw-r--r-- 139 bytes
0012-rdar20270240.swift -rw-r--r-- 547 bytes
0013-rdar19519590.swift -rw-r--r-- 2.6 KB
0014-rdar20508671.swift -rw-r--r-- 789 bytes
0015-rdar16803384.swift -rw-r--r-- 647 bytes
0016-rdar21437203.swift -rw-r--r-- 470 bytes
0017-rdar21087186.swift -rw-r--r-- 118 bytes
0018-rdar21524144.swift -rw-r--r-- 668 bytes
0019-rdar21511651.swift -rw-r--r-- 14.4 KB
0020-rdar21598514.swift -rw-r--r-- 5.6 KB
0021-rdar21333511.swift -rw-r--r-- 757 bytes
0022-rdar21625478.swift -rw-r--r-- 8.2 KB
0023-rdar21679169.swift -rw-r--r-- 56 bytes
0024-rdar21551616.swift -rw-r--r-- 104 bytes
0025-rdar21783334.swift -rw-r--r-- 57 bytes
0027-rdar21514140.swift -rw-r--r-- 13.0 KB
0028-rdar19686707.swift -rw-r--r-- 73 bytes
0029-rdar21389284.swift -rw-r--r-- 66 bytes
0030-rdar19534837.swift -rw-r--r-- 70 bytes
0031-rdar19606899.swift -rw-r--r-- 89 bytes
0032-rdar19919421.swift -rw-r--r-- 155 bytes
0033-rdar21945994.swift -rw-r--r-- 80 bytes
0034-rdar21982453.swift -rw-r--r-- 122 bytes
0035-rdar22003613.swift -rw-r--r-- 461 bytes
0036-rdar23719809.swift -rw-r--r-- 171 bytes
0037-SILWitnessVisitor.swift -rw-r--r-- 170 bytes

back to top