Generalized SynchronisationScope for BuilderMethods
This commit is contained in:
parent
b699866290
commit
b761538997
4 changed files with 24 additions and 6 deletions
|
@ -1097,12 +1097,12 @@ impl BuilderMethods<'a, 'll, 'tcx, Value, BasicBlock>
|
|||
}
|
||||
}
|
||||
|
||||
fn atomic_fence(&self, order: traits::AtomicOrdering, scope: SynchronizationScope) {
|
||||
fn atomic_fence(&self, order: traits::AtomicOrdering, scope: traits::SynchronizationScope) {
|
||||
unsafe {
|
||||
llvm::LLVMRustBuildAtomicFence(
|
||||
self.llbuilder,
|
||||
AtomicOrdering::from_generic(order),
|
||||
scope
|
||||
SynchronizationScope::from_generic(scope)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue