Fix LLVMRustInlineAsmVerify return type mismatch
This commit is contained in:
parent
5ea8eb55cd
commit
f40932f106
@ -756,7 +756,7 @@ impl Builder<'a, 'll, 'tcx> {
|
||||
// Ask LLVM to verify that the constraints are well-formed.
|
||||
let constraints_ok = llvm::LLVMRustInlineAsmVerify(fty, cons);
|
||||
debug!("Constraint verification result: {:?}", constraints_ok);
|
||||
if constraints_ok == llvm::True {
|
||||
if constraints_ok {
|
||||
let v = llvm::LLVMRustInlineAsm(
|
||||
fty, asm, cons, volatile, alignstack, dia);
|
||||
Some(self.call(v, inputs, None))
|
||||
|
@ -1212,8 +1212,8 @@ extern "C" {
|
||||
Dialect: AsmDialect)
|
||||
-> &Value;
|
||||
pub fn LLVMRustInlineAsmVerify(Ty: &Type,
|
||||
Constraints: *const c_char)
|
||||
-> Bool;
|
||||
Constraints: *const c_char)
|
||||
-> bool;
|
||||
|
||||
pub fn LLVMRustDebugMetadataVersion() -> u32;
|
||||
pub fn LLVMRustVersionMajor() -> u32;
|
||||
|
Loading…
x
Reference in New Issue
Block a user