Generalized SynchronisationScope for BuilderMethods

This commit is contained in:
Denis Merigoux 2018-08-21 18:15:29 +02:00 committed by Eduard-Mihai Burtescu
parent b699866290
commit b761538997
4 changed files with 24 additions and 6 deletions

View file

@ -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)
);
}
}