diff options
| author | Matthew Jasper <mjjasper1@gmail.com> | 2018-09-29 10:34:12 +0100 |
|---|---|---|
| committer | Matthew Jasper <mjjasper1@gmail.com> | 2018-10-03 19:54:55 +0100 |
| commit | cc09cb5e5ad8c072441f2156aa9bcd1484e55b1c (patch) | |
| tree | 60b67765dec896c07fa01395a886047ea13c11a4 /src/librustc_codegen_llvm | |
| parent | 6ddab3e078bc25bd101d6885427b8a1032f8f60c (diff) | |
| download | rust-cc09cb5e5ad8c072441f2156aa9bcd1484e55b1c.tar.gz rust-cc09cb5e5ad8c072441f2156aa9bcd1484e55b1c.zip | |
Record whether a Call in MIR corresponds to a call in HIR
Diffstat (limited to 'src/librustc_codegen_llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/mir/block.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/mir/block.rs b/src/librustc_codegen_llvm/mir/block.rs index 709fceb4925..db95b46c38e 100644 --- a/src/librustc_codegen_llvm/mir/block.rs +++ b/src/librustc_codegen_llvm/mir/block.rs @@ -412,7 +412,13 @@ impl FunctionCx<'a, 'll, 'tcx> { bug!("undesugared DropAndReplace in codegen: {:?}", terminator); } - mir::TerminatorKind::Call { ref func, ref args, ref destination, cleanup } => { + mir::TerminatorKind::Call { + ref func, + ref args, + ref destination, + cleanup, + from_hir_call: _ + } => { // Create the callee. This is a fn ptr or zero-sized and hence a kind of scalar. let callee = self.codegen_operand(&bx, func); |
