diff --git a/LValue.cpp b/LValue.cpp index f3be86783..409446638 100644 --- a/LValue.cpp +++ b/LValue.cpp @@ -240,7 +240,7 @@ void StorageItem::storeValue(Type const& _sourceType, SourceLocation const& _loc dynamic_cast(m_dataType), dynamic_cast(_sourceType)); if (_move) - utils.popStackElement(_sourceType); + utils.popStackElement(m_dataType); } else if (m_dataType.getCategory() == Type::Category::Struct) {