]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_codegen_llvm/mir/mod.rs
Generalized base.rs#call_memcpy and everything that it uses
[rust.git] / src / librustc_codegen_llvm / mir / mod.rs
index 7eda7ea0b7d7476cc87fc6f63588ac0bd64ec710..526c8f75f4943ea8ac14ff2ec7f9124a761da8fe 100644 (file)
@@ -26,6 +26,7 @@
 use abi::{ArgTypeExt, FnType, FnTypeExt, PassMode};
 use type_::Type;
 use value::Value;
+use traits::BuilderMethods;
 
 use syntax_pos::{DUMMY_SP, NO_EXPANSION, BytePos, Span};
 use syntax::symbol::keywords;
@@ -119,7 +120,11 @@ pub fn monomorphize<T>(&self, value: &T) -> T
         )
     }
 
-    pub fn set_debug_loc(&mut self, bx: &Builder<'_, 'll, '_>, source_info: mir::SourceInfo) {
+    pub fn set_debug_loc(
+        &mut self,
+        bx: &Builder<'_, 'll, '_, &'ll Value>,
+        source_info: mir::SourceInfo
+    ) {
         let (scope, span) = self.debug_loc(source_info);
         debuginfo::set_source_location(&self.debug_context, bx, scope, span);
     }