diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-04-28 15:23:37 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-04-28 15:23:37 +0800 |
commit | 406fe84b2c663e5b1a31448baefe09b847cb635c (patch) | |
tree | fdd62cca2e5e010eb3416e534475b32a56b1807d /src/hir/hir.hpp | |
parent | 2aaec20f9f4f8fc002086cb1117126dd6ac53b22 (diff) | |
download | mrust-406fe84b2c663e5b1a31448baefe09b847cb635c.tar.gz |
Trans Monomorph - Associated constants left as Defer
Diffstat (limited to 'src/hir/hir.hpp')
-rw-r--r-- | src/hir/hir.hpp | 3 |
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 { |