summaryrefslogtreecommitdiff
path: root/src/hir/from_ast.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-05-18 13:53:56 +0800
committerJohn Hodge <tpg@mutabah.net>2016-05-18 13:53:56 +0800
commit2983a5f8a6b08acc34413a85f7e554ec7ceaad2d (patch)
treee6037516690d64cebdebaf33071da359349fb96d /src/hir/from_ast.cpp
parent8f1a4e56874b0321081161aedfa4da768ffcc65e (diff)
downloadmrust-2983a5f8a6b08acc34413a85f7e554ec7ceaad2d.tar.gz
Enable full optimisation (and fix compiler errors from that)
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r--src/hir/from_ast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index 2c97b550..552a3bcb 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -61,7 +61,7 @@
::HIR::PatternBinding binding;
if( pat.binding() != "" )
{
- ::HIR::PatternBinding::Type bt;
+ ::HIR::PatternBinding::Type bt = ::HIR::PatternBinding::Type::Move;
switch(pat.binding_type())
{
case ::AST::Pattern::BIND_MOVE: bt = ::HIR::PatternBinding::Type::Move; break;