summaryrefslogtreecommitdiff
path: root/src/mir/mir.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-12-03 08:00:04 +0800
committerJohn Hodge <tpg@mutabah.net>2016-12-03 08:00:04 +0800
commit55bc4a9e019b1b5e51fec58030a30ea9146de45c (patch)
treefa17e394ab154cdb7512edc0515449969cf2b5ce /src/mir/mir.hpp
parent892b1029b5c9fa2bc12316dcf927d1aa36135538 (diff)
downloadmrust-55bc4a9e019b1b5e51fec58030a30ea9146de45c.tar.gz
HIR/MIR - VTable work
Diffstat (limited to 'src/mir/mir.hpp')
-rw-r--r--src/mir/mir.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mir/mir.hpp b/src/mir/mir.hpp
index c0ee0d21..bf5e2d4a 100644
--- a/src/mir/mir.hpp
+++ b/src/mir/mir.hpp
@@ -130,6 +130,10 @@ TAGGED_UNION(RValue, Use,
(DstMeta, struct {
LValue val;
}),
+ // Extract the pointer from a DST pointer (as *const ())
+ (DstPtr, struct {
+ LValue val;
+ }),
// Construct a DST pointer from a thin pointer and metadata
(MakeDst, struct {
LValue ptr_val;