Skip to content

Commit 1d50972

Browse files
Emit 1-based column indexes for locations in debuginfo
1 parent 305bf12 commit 1d50972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_codegen_llvm/debuginfo/source_loc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub fn set_debug_location(
6060
let col_used = if bx.sess().target.target.options.is_like_msvc {
6161
UNKNOWN_COLUMN_NUMBER
6262
} else {
63-
col as c_uint
63+
(col + 1) as c_uint
6464
};
6565
debug!("setting debug location to {} {}", line, col);
6666

0 commit comments

Comments
 (0)