Make drop glue for unsized value pass two arguments instead of *(data, meta)

This commit is contained in:
Mark Simulacrum
2016-12-20 10:46:44 -07:00
parent 1b38776c1f
commit afc2dcd0ca
6 changed files with 137 additions and 226 deletions

View File

@@ -270,7 +270,8 @@ pub fn mk_section_iter(llof: ObjectFileRef) -> SectionIter {
/// Safe wrapper around `LLVMGetParam`, because segfaults are no fun.
pub fn get_param(llfn: ValueRef, index: c_uint) -> ValueRef {
unsafe {
assert!(index < LLVMCountParams(llfn));
assert!(index < LLVMCountParams(llfn),
"out of bounds argument access: {} out of {} arguments", index, LLVMCountParams(llfn));
LLVMGetParam(llfn, index)
}
}