summaryrefslogtreecommitdiff
path: root/src/mir/check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir/check.cpp')
-rw-r--r--src/mir/check.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mir/check.cpp b/src/mir/check.cpp
index 62e06d51..c76b6e92 100644
--- a/src/mir/check.cpp
+++ b/src/mir/check.cpp
@@ -430,7 +430,8 @@ void MIR_Validate_ValState(::MIR::TypeResolve& state, const ::MIR::Function& fcn
),
(MakeDst,
//val_state.move_val(state, se.ptr_val);
- val_state.ensure_valid(state, se.ptr_val);
+ if( const auto* e = se.ptr_val.opt_LValue() )
+ val_state.ensure_valid(state, *e);
val_state.move_val(state, se.meta_val);
),
(Tuple,