Skip to content

Commit fcb0018

Browse files
committed
---
yaml --- r: 54493 b: refs/heads/snap-stage3 c: f064048 h: refs/heads/master i: 54491: 88c0d79 v: v3
1 parent 3120720 commit fcb0018

File tree

3 files changed

+10
-21
lines changed

3 files changed

+10
-21
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: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 783392f70fcfd6770782796bef06bed47043cabf
4+
refs/heads/snap-stage3: f06404860ce4c083461483b41879ae40f08a3fc2
55
refs/heads/try: 8eb2bab100b42f0ba751552d8eff00eb2134c55a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/compiletest/procsrv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn target_env(lib_path: ~str, prog: ~str) -> ~[(~str,~str)] {
2626

2727
// Make sure we include the aux directory in the path
2828
assert!(prog.ends_with(~".exe"));
29-
let aux_path = prog.slice(0u, prog.len() - 4u).to_owned() + ~".libaux";
29+
let aux_path = prog.slice(0u, prog.len() - 4u) + ~".libaux";
3030
3131
env = do vec::map(env) |pair| {
3232
let (k,v) = *pair;

branches/snap-stage3/src/librustc/middle/trans/base.rs

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2284,25 +2284,14 @@ pub fn create_main_wrapper(ccx: @CrateContext,
22842284
let opaque_crate_map = llvm::LLVMBuildPointerCast(
22852285
bld, crate_map, T_ptr(T_i8()), noname());
22862286
2287-
if *ccx.sess.building_library {
2288-
~[
2289-
retptr,
2290-
C_null(T_opaque_box_ptr(ccx)),
2291-
opaque_rust_main,
2292-
llvm::LLVMConstInt(T_i32(), 0u as c_ulonglong, False),
2293-
llvm::LLVMConstInt(T_i32(), 0u as c_ulonglong, False),
2294-
opaque_crate_map
2295-
]
2296-
} else {
2297-
~[
2298-
retptr,
2299-
C_null(T_opaque_box_ptr(ccx)),
2300-
opaque_rust_main,
2301-
llvm::LLVMGetParam(llfn, 0 as c_uint),
2302-
llvm::LLVMGetParam(llfn, 1 as c_uint),
2303-
opaque_crate_map
2304-
]
2305-
}
2287+
~[
2288+
retptr,
2289+
C_null(T_opaque_box_ptr(ccx)),
2290+
opaque_rust_main,
2291+
llvm::LLVMGetParam(llfn, 0 as c_uint),
2292+
llvm::LLVMGetParam(llfn, 1 as c_uint),
2293+
opaque_crate_map
2294+
]
23062295
};
23072296
23082297
unsafe {

0 commit comments

Comments
 (0)