diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-08-18 10:52:50 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-08-18 10:52:50 +0800 |
commit | be3d6a654b2a19098e616a58129d1eaabc0318fb (patch) | |
tree | 37724bca5cf3353bb48bad10f904be30e09e1416 /src/trans/auto_impls.cpp | |
parent | 981d2e0378fed119835b3780a5d2e17b33a52669 (diff) | |
download | mrust-be3d6a654b2a19098e616a58129d1eaabc0318fb.tar.gz |
Trans AutoImpls - Fix minor issue in generation of Clone panic arms
Diffstat (limited to 'src/trans/auto_impls.cpp')
-rw-r--r-- | src/trans/auto_impls.cpp | 2 |
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 |