about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/debuginfo/mod.rs
diff options
context:
space:
mode:
authorDenis Merigoux <denis.merigoux@gmail.com>2018-08-28 17:50:57 +0200
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2018-11-16 14:11:59 +0200
commitd3258448045d672b0cd273cb1ea9381b470c2ca2 (patch)
tree8c4b20fa7ddb041ede6b9040ee11eeb91f721980 /src/librustc_codegen_llvm/debuginfo/mod.rs
parent8714e6bce6b04482723f0b735879533c82c114fa (diff)
downloadrust-d3258448045d672b0cd273cb1ea9381b470c2ca2.tar.gz
rust-d3258448045d672b0cd273cb1ea9381b470c2ca2.zip
Replaced Codegen field access by trait method
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo/mod.rs')
-rw-r--r--src/librustc_codegen_llvm/debuginfo/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/mod.rs b/src/librustc_codegen_llvm/debuginfo/mod.rs
index b7f70a67491..0ee51f1956b 100644
--- a/src/librustc_codegen_llvm/debuginfo/mod.rs
+++ b/src/librustc_codegen_llvm/debuginfo/mod.rs
@@ -494,7 +494,7 @@ pub fn declare_local(
     span: Span,
 ) {
     assert!(!dbg_context.get_ref(span).source_locations_enabled.get());
-    let cx = bx.cx;
+    let cx = bx.cx();
 
     let file = span_start(cx, span).file;
     let file_metadata = file_metadata(cx,