Skip to content

Commit 5d77b69

Browse files
committed
---
yaml --- r: 67213 b: refs/heads/master c: 7434080 h: refs/heads/master i: 67211: a754c8a v: v3
1 parent 85bbf32 commit 5d77b69

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 7a6ebb36b0061f68c5122b3f475871239af6aa8a
2+
refs/heads/master: 7434080dd7c0cd072d7e51fbb1e174e954bdc011
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/src/librustc/middle/trans/_match.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,8 @@ pub fn compile_submatch(bcx: block,
12791279
assert!((m.len() > 0u || chk.is_some()));
12801280
let _icx = push_ctxt("match::compile_submatch");
12811281
let mut bcx = bcx;
1282+
let tcx = bcx.tcx();
1283+
let dm = tcx.def_map;
12821284
if m.len() == 0u {
12831285
Br(bcx, chk.get()());
12841286
return;

trunk/src/librustc/middle/trans/common.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -788,15 +788,6 @@ pub fn C_estr_slice(cx: &mut CrateContext, s: @str) -> ValueRef {
788788
}
789789
}
790790

791-
// Returns a Plain Old LLVM String:
792-
pub fn C_postr(s: &str) -> ValueRef {
793-
unsafe {
794-
do s.as_c_str |buf| {
795-
llvm::LLVMConstStringInContext(base::task_llcx(), buf, s.len() as c_uint, False)
796-
}
797-
}
798-
}
799-
800791
pub fn C_zero_byte_arr(size: uint) -> ValueRef {
801792
unsafe {
802793
let mut i = 0u;
@@ -844,14 +835,6 @@ pub fn C_bytes(bytes: &[u8]) -> ValueRef {
844835
}
845836
}
846837

847-
pub fn C_bytes_plus_null(bytes: &[u8]) -> ValueRef {
848-
unsafe {
849-
return llvm::LLVMConstStringInContext(base::task_llcx(),
850-
cast::transmute(vec::raw::to_ptr(bytes)),
851-
bytes.len() as c_uint, False);
852-
}
853-
}
854-
855838
pub fn get_param(fndecl: ValueRef, param: uint) -> ValueRef {
856839
unsafe {
857840
llvm::LLVMGetParam(fndecl, param as c_uint)

0 commit comments

Comments
 (0)