Skip to content

Commit fcc3bde

Browse files
Manishearthpnkfelix
authored andcommitted
---
yaml --- r: 188111 b: refs/heads/auto c: 185c074 h: refs/heads/master i: 188109: 7659931 188107: 61585cc 188103: 1dce1b6 188095: 3bb9240 v: v3
1 parent 4d03f4c commit fcc3bde

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 4e23179c85b3706e2ff78ecb0c014e42c56b096d
13+
refs/heads/auto: 185c074798ce87429118868c292d2c2c7dc46cfc
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libstd/sys/unix/backtrace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ pub fn write(w: &mut Writer) -> IoResult<()> {
176176
let mut ip = unsafe {
177177
uw::_Unwind_GetIPInfo(ctx, &mut ip_before_insn) as *mut libc::c_void
178178
};
179-
if ip_before_insn == 0 {
179+
if !ip.is_null() && ip_before_insn == 0 {
180180
// this is a non-signaling frame, so `ip` refers to the address
181181
// after the calling instruction. account for that.
182182
ip = (ip as usize - 1) as *mut _;

branches/auto/src/test/run-pass/backtrace-debuginfo.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn dump_filelines(filelines: &[Pos]) {
6868
}
6969

7070
#[inline(never)]
71-
fn inner(counter: &mut u32, main_pos: Pos, outer_pos: Pos) {
71+
fn inner(counter: &mut i32, main_pos: Pos, outer_pos: Pos) {
7272
check!(counter; main_pos, outer_pos);
7373
check!(counter; main_pos, outer_pos);
7474
let inner_pos = pos!(); aux::callback(|aux_pos| {
@@ -80,12 +80,12 @@ fn inner(counter: &mut u32, main_pos: Pos, outer_pos: Pos) {
8080
}
8181

8282
#[inline(always)]
83-
fn inner_inlined(counter: &mut u32, main_pos: Pos, outer_pos: Pos) {
83+
fn inner_inlined(counter: &mut i32, main_pos: Pos, outer_pos: Pos) {
8484
check!(counter; main_pos, outer_pos);
8585
check!(counter; main_pos, outer_pos);
8686

8787
#[inline(always)]
88-
fn inner_further_inlined(counter: &mut u32, main_pos: Pos, outer_pos: Pos, inner_pos: Pos) {
88+
fn inner_further_inlined(counter: &mut i32, main_pos: Pos, outer_pos: Pos, inner_pos: Pos) {
8989
check!(counter; main_pos, outer_pos, inner_pos);
9090
}
9191
inner_further_inlined(counter, main_pos, outer_pos, pos!());
@@ -103,7 +103,7 @@ fn inner_inlined(counter: &mut u32, main_pos: Pos, outer_pos: Pos) {
103103
}
104104

105105
#[inline(never)]
106-
fn outer(mut counter: u32, main_pos: Pos) {
106+
fn outer(mut counter: i32, main_pos: Pos) {
107107
inner(&mut counter, main_pos, pos!());
108108
inner_inlined(&mut counter, main_pos, pos!());
109109
}

0 commit comments

Comments
 (0)