codegen_llvm: remove unnecessary "extern C"

Signed-off-by: David Wood <david@davidtw.co>
This commit is contained in:
David Wood 2019-10-26 20:36:51 +01:00
parent a515258b35
commit 0128f8ee11
No known key found for this signature in database
GPG key ID: 2592E76C87381FD9

View file

@ -239,10 +239,7 @@ impl<'a> Drop for DiagnosticHandlers<'a> {
}
}
#[allow(improper_ctypes)]
unsafe extern "C" fn report_inline_asm(cgcx: &CodegenContext<LlvmCodegenBackend>,
msg: &str,
cookie: c_uint) {
fn report_inline_asm(cgcx: &CodegenContext<LlvmCodegenBackend>, msg: &str, cookie: c_uint) {
cgcx.diag_emitter.inline_asm_error(cookie as u32, msg.to_owned());
}