diff options
author | John Hodge <tpg@mutabah.net> | 2017-01-02 18:25:00 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2017-01-02 18:25:00 +0800 |
commit | 63746ecbbf8a9e68a2c8ff1735032243ec29ee99 (patch) | |
tree | d900dcce638346e4be1d0b8dd2c866c3873257a3 /src/mir/from_hir.hpp | |
parent | 379ca7a473e13fe242edcc847aaff341da58d9cc (diff) | |
download | mrust-63746ecbbf8a9e68a2c8ff1735032243ec29ee99.tar.gz |
MIR - Remove Deref from inputs to RValue::DstMeta/DstPtr
Diffstat (limited to 'src/mir/from_hir.hpp')
-rw-r--r-- | src/mir/from_hir.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir/from_hir.hpp b/src/mir/from_hir.hpp index dc11232e..b644e66f 100644 --- a/src/mir/from_hir.hpp +++ b/src/mir/from_hir.hpp @@ -226,6 +226,9 @@ private: public: void with_val_type(const Span& sp, const ::MIR::LValue& val, ::std::function<void(const ::HIR::TypeRef&)> cb) const; bool lvalue_is_copy(const Span& sp, const ::MIR::LValue& lv) const; + + // Obtain the base fat poiner for a dst reference. Errors if it wasn't via a fat pointer + const ::MIR::LValue& get_ptr_to_dst(const Span& sp, const ::MIR::LValue& lv) const; }; class MirConverter: |