From 74ca55d23091565444ce64fe4c8dbd6fc0783f56 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Mon, 16 Dec 2019 12:11:14 +0100 Subject: [PATCH] Rustup --- src/debuginfo/mod.rs | 2 +- test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debuginfo/mod.rs b/src/debuginfo/mod.rs index 50cae4d46e2..9e04566a208 100644 --- a/src/debuginfo/mod.rs +++ b/src/debuginfo/mod.rs @@ -202,7 +202,7 @@ impl<'a, 'tcx> FunctionDebugContext<'a, 'tcx> { func_id: FuncId, name: &str, ) -> Self { - let mir = debug_context.tcx.instance_mir(instance.def); + let mir = *debug_context.tcx.instance_mir(instance.def); let (symbol, _) = debug_context.symbols.insert_full(func_id, name.to_string()); diff --git a/test.sh b/test.sh index 7c7803af0b8..4f393ad1797 100755 --- a/test.sh +++ b/test.sh @@ -37,7 +37,7 @@ echo "[AOT] mini_core_hello_world" $RUSTC example/mini_core_hello_world.rs --crate-name mini_core_hello_world --crate-type bin -g ./target/out/mini_core_hello_world abc bcd if lldb -v; then -(echo "break set -n main"; echo "run"; sleep 1; echo "si -c 35"; sleep 1; echo "frame variable") | lldb -- ./target/out/mini_core_hello_world abc bcd +(echo "break set -n main"; echo "run"; sleep 1; echo "si -c 10"; sleep 1; echo "frame variable") | lldb -- ./target/out/mini_core_hello_world abc bcd fi exit 1