fixup! codegen_llvm: check inline assembly constraints with LLVM
This commit is contained in:
parent
fec86c8352
commit
70bf90384c
2 changed files with 3 additions and 2 deletions
|
@ -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 == 1 {
|
||||
if constraints_ok == llvm::True {
|
||||
let v = llvm::LLVMRustInlineAsm(
|
||||
fty, asm, cons, volatile, alignstack, dia);
|
||||
Some(self.call(v, inputs, None))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue