about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/builder.rs
diff options
context:
space:
mode:
authorDenis Merigoux <denis.merigoux@gmail.com>2018-08-21 18:15:29 +0200
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2018-11-16 14:11:09 +0200
commitb7615389978eae2ae9f3cba9a776fd8da3f743ca (patch)
tree16b5b6da384a12abc0016a389b5d295d66fe999c /src/librustc_codegen_llvm/builder.rs
parentb6998662900290db23974e8a7ba3c3864330c368 (diff)
downloadrust-b7615389978eae2ae9f3cba9a776fd8da3f743ca.tar.gz
rust-b7615389978eae2ae9f3cba9a776fd8da3f743ca.zip
Generalized SynchronisationScope for BuilderMethods
Diffstat (limited to 'src/librustc_codegen_llvm/builder.rs')
-rw-r--r--src/librustc_codegen_llvm/builder.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_llvm/builder.rs b/src/librustc_codegen_llvm/builder.rs
index e09f22b4e69..61142d7fde3 100644
--- a/src/librustc_codegen_llvm/builder.rs
+++ b/src/librustc_codegen_llvm/builder.rs
@@ -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)
             );
         }
     }