Skip to content

Commit 0c18033

Browse files
committed
---
yaml --- r: 64632 b: refs/heads/snap-stage3 c: 7434080 h: refs/heads/master v: v3
1 parent dceb77a commit 0c18033

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,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 7a6ebb36b0061f68c5122b3f475871239af6aa8a
4+
refs/heads/snap-stage3: 7434080dd7c0cd072d7e51fbb1e174e954bdc011
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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;

branches/snap-stage3/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)