summaryrefslogtreecommitdiff
path: root/src/hir/hir.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2019-04-28 15:23:37 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-04-28 15:23:37 +0800
commit406fe84b2c663e5b1a31448baefe09b847cb635c (patch)
treefdd62cca2e5e010eb3416e534475b32a56b1807d /src/hir/hir.hpp
parent2aaec20f9f4f8fc002086cb1117126dd6ac53b22 (diff)
downloadmrust-406fe84b2c663e5b1a31448baefe09b847cb635c.tar.gz
Trans Monomorph - Associated constants left as Defer
Diffstat (limited to 'src/hir/hir.hpp')
-rw-r--r--src/hir/hir.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hir/hir.hpp b/src/hir/hir.hpp
index f0844580..6c8385c4 100644
--- a/src/hir/hir.hpp
+++ b/src/hir/hir.hpp
@@ -173,6 +173,9 @@ public:
TypeRef m_type;
ExprPtr m_value;
Literal m_value_res;
+
+ // A cache of monomorphised versions when the `const` depends on generics for its value
+ mutable ::std::map< ::HIR::Path, Literal> m_monomorph_cache;
};
class Function
{