Skip to content

Commit 1ec28f7

Browse files
committed
remove commented out code
1 parent 84b058a commit 1ec28f7

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/eval.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,6 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
149149

150150
// Setup first stack-frame
151151
let entry_instance = ty::Instance::mono(tcx, entry_id);
152-
/*let entry_mir = ecx.load_mir(entry_instance.def, None)?;
153-
if main_mir.arg_count != 0 {
154-
bug!("main function must not take any arguments");
155-
}*/
156152

157153
// First argument is constructed later, because its skipped if the entry function uses #[start]
158154

@@ -228,16 +224,6 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
228224
argv
229225
};
230226

231-
/*let args: &[_] = match entry_type {
232-
EntryFnType::Main => {
233-
// First argument: pointer to `main()`.
234-
let main_ptr = ecx.memory.create_fn_alloc(FnVal::Instance(main_instance));
235-
236-
&[Scalar::from_pointer(main_ptr, &ecx).into(), argc.into(), argv]
237-
}
238-
EntryFnType::Start => &[argc.into(), argv],
239-
};*/
240-
241227
// Return place (in static memory so that it does not count as leak).
242228
let ret_place = ecx.allocate(ecx.machine.layouts.isize, MiriMemoryKind::Machine.into())?;
243229
// Call start function.

0 commit comments

Comments
 (0)