diff options
| author | varkor <github@varkor.com> | 2018-10-16 18:19:04 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-10-16 18:22:25 +0100 |
| commit | f40932f106d3670a4b2041d54bf37fa3f49c20f2 (patch) | |
| tree | c5cf6c0701476e41ac00d3f9663ab0ddf72a7b16 /src/librustc_codegen_llvm/builder.rs | |
| parent | 5ea8eb55cd9f4547b332f43c9f723de30187c223 (diff) | |
Fix LLVMRustInlineAsmVerify return type mismatch
Diffstat (limited to 'src/librustc_codegen_llvm/builder.rs')
| -rw-r--r-- | src/librustc_codegen_llvm/builder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/builder.rs b/src/librustc_codegen_llvm/builder.rs index df9c4e874bd..169bd9a8466 100644 --- a/src/librustc_codegen_llvm/builder.rs +++ b/src/librustc_codegen_llvm/builder.rs @@ -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)) |
