fixup! codegen_llvm: check inline assembly constraints with LLVM

This commit is contained in:
Levente Kurusa 2018-09-26 06:43:19 +02:00
parent fec86c8352
commit 70bf90384c
No known key found for this signature in database
GPG key ID: 28D6B15E6B491269
2 changed files with 3 additions and 2 deletions

View file

@ -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))