mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
As per my discussions with Anna, removed MayWriteAndHaveSideEffects.
The reason we decided to do this is that MayHaveSideEffects implies that a write can occur, making MayWriteAndHaveSideEffects redundent. Swift SVN r7943
This commit is contained in:
@@ -201,11 +201,9 @@ SILInstructionMemoryBehavior SILInstruction::getMemoryBehavior() const {
|
||||
|
||||
bool SILInstruction::mayHaveSideEffects() const {
|
||||
SILInstructionMemoryBehavior B = getMemoryBehavior();
|
||||
if (B == SILInstructionMemoryBehavior::MayWrite ||
|
||||
B == SILInstructionMemoryBehavior::MayHaveSideEffects ||
|
||||
B == SILInstructionMemoryBehavior::MayWriteAndHaveSideEffects)
|
||||
return true;
|
||||
return false;
|
||||
|
||||
return B == SILInstructionMemoryBehavior::MayWrite ||
|
||||
B == SILInstructionMemoryBehavior::MayHaveSideEffects;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
Reference in New Issue
Block a user