Skip to content

Commit ed0bae7

Browse files
committed
Accesss marker deserialization.
Fix a dumb typo from the previous commit.
1 parent 1b6cd32 commit ed0bae7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Serialization/DeserializeSIL.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ bool SILDeserializer::readSILInstruction(SILFunction *Fn, SILBasicBlock *BB,
14771477
case ValueKind::BeginAccessInst: {
14781478
SILValue op = getLocalValue(
14791479
ValID, getSILType(MF->getType(TyID), (SILValueCategory)TyCategory));
1480-
auto accessKind = SILAccessKind(Attr & 0x2);
1480+
auto accessKind = SILAccessKind(Attr & 0x3);
14811481
auto enforcement = SILAccessEnforcement(Attr >> 2);
14821482
ResultVal = Builder.createBeginAccess(Loc, op, accessKind, enforcement);
14831483
break;
@@ -1494,7 +1494,7 @@ bool SILDeserializer::readSILInstruction(SILFunction *Fn, SILBasicBlock *BB,
14941494
ValID, getSILType(MF->getType(TyID), (SILValueCategory)TyCategory));
14951495
SILValue buffer = getLocalValue(
14961496
ValID2, getSILType(MF->getType(TyID2), (SILValueCategory)TyCategory2));
1497-
auto accessKind = SILAccessKind(Attr & 0x2);
1497+
auto accessKind = SILAccessKind(Attr & 0x3);
14981498
auto enforcement = SILAccessEnforcement(Attr >> 2);
14991499
ResultVal = Builder.createBeginUnpairedAccess(Loc, source, buffer,
15001500
accessKind, enforcement);

0 commit comments

Comments
 (0)