mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
libswift: reimplement AssumeSingleThreaded pass
This commit is contained in:
@@ -483,6 +483,11 @@ SwiftInt StoreInst_getStoreOwnership(BridgedInstruction store) {
|
||||
return (SwiftInt)castToInst<StoreInst>(store)->getOwnershipQualifier();
|
||||
}
|
||||
|
||||
void RefCountingInst_setIsAtomic(BridgedInstruction rc, bool isAtomic) {
|
||||
castToInst<RefCountingInst>(rc)->setAtomicity(
|
||||
isAtomic ? RefCountingInst::Atomicity::Atomic
|
||||
: RefCountingInst::Atomicity::NonAtomic);
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// SILBuilder
|
||||
|
||||
Reference in New Issue
Block a user