summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2019-08-18 10:52:50 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-08-18 10:52:50 +0800
commitbe3d6a654b2a19098e616a58129d1eaabc0318fb (patch)
tree37724bca5cf3353bb48bad10f904be30e09e1416 /src
parent981d2e0378fed119835b3780a5d2e17b33a52669 (diff)
downloadmrust-be3d6a654b2a19098e616a58129d1eaabc0318fb.tar.gz
Trans AutoImpls - Fix minor issue in generation of Clone panic arms
Diffstat (limited to 'src')
-rw-r--r--src/trans/auto_impls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trans/auto_impls.cpp b/src/trans/auto_impls.cpp
index 351c93e4..71f95a26 100644
--- a/src/trans/auto_impls.cpp
+++ b/src/trans/auto_impls.cpp
@@ -77,7 +77,7 @@ namespace {
// Stub panic handling (TODO: Make this iterate `values` and drop all of them)
::MIR::BasicBlock panic_bb;
- bb.terminator = ::MIR::Terminator::make_Diverge({});
+ panic_bb.terminator = ::MIR::Terminator::make_Diverge({});
mir_fcn.blocks.push_back(::std::move( panic_bb ));
// Save the output of the `clone` call