summaryrefslogtreecommitdiff
path: root/src/mir/from_hir.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2018-06-03 14:57:05 +0800
committerJohn Hodge <tpg@ucc.asn.au>2018-06-03 14:57:05 +0800
commitbf8f8b4b4a9fe273451be59f68acafbe61968b83 (patch)
tree82993550cb3c88de0edbd55d79e4ea8e8cefffac /src/mir/from_hir.cpp
parent39b3cf53798683e496804f8322da2254b10850f4 (diff)
parenta7fb27789a2b34543851d207120e2c0001ee9c27 (diff)
downloadmrust-bf8f8b4b4a9fe273451be59f68acafbe61968b83.tar.gz
Merge branch 'master' of https://github.com/thepowersgang/mrustc
Diffstat (limited to 'src/mir/from_hir.cpp')
-rw-r--r--src/mir/from_hir.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp
index c2b80202..dc3b78a7 100644
--- a/src/mir/from_hir.cpp
+++ b/src/mir/from_hir.cpp
@@ -786,10 +786,10 @@ namespace {
{
DEBUG("- constant condition");
if( cond_lit->m_data.as_Boolean() ) {
- m_builder.end_block( ::MIR::Terminator::make_Goto({ true_branch }) );
+ m_builder.end_block( ::MIR::Terminator::make_Goto( true_branch ) );
}
else {
- m_builder.end_block( ::MIR::Terminator::make_Goto({ false_branch }) );
+ m_builder.end_block( ::MIR::Terminator::make_Goto( false_branch ) );
}
return ;
}