diff options
author | John Hodge <tpg@mutabah.net> | 2016-12-03 08:00:04 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-12-03 08:00:04 +0800 |
commit | 55bc4a9e019b1b5e51fec58030a30ea9146de45c (patch) | |
tree | fa17e394ab154cdb7512edc0515449969cf2b5ce /src/hir_conv/constant_evaluation.cpp | |
parent | 892b1029b5c9fa2bc12316dcf927d1aa36135538 (diff) | |
download | mrust-55bc4a9e019b1b5e51fec58030a30ea9146de45c.tar.gz |
HIR/MIR - VTable work
Diffstat (limited to 'src/hir_conv/constant_evaluation.cpp')
-rw-r--r-- | src/hir_conv/constant_evaluation.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/hir_conv/constant_evaluation.cpp b/src/hir_conv/constant_evaluation.cpp index bd1e740a..058d018a 100644 --- a/src/hir_conv/constant_evaluation.cpp +++ b/src/hir_conv/constant_evaluation.cpp @@ -884,6 +884,8 @@ namespace { ::HIR::Literal evaluate_constant_mir(const Span& sp, const ::HIR::Crate& crate, NewvalState newval_state, const ::MIR::Function& fcn, ::std::vector< ::HIR::Literal> args) { + TRACE_FUNCTION; + ::HIR::Literal retval; ::std::vector< ::HIR::Literal> locals; ::std::vector< ::HIR::Literal> temps; @@ -1119,6 +1121,9 @@ namespace { (DstMeta, TODO(sp, "RValue::DstMeta"); ), + (DstPtr, + TODO(sp, "RValue::DstPtr"); + ), (MakeDst, TODO(sp, "RValue::MakeDst"); ), @@ -1197,7 +1202,7 @@ namespace { return evaluate_constant_mir(sp, crate, mv$(newval_state), *expr.m_mir, mv$(args)); } else { - BUG(sp, "Attempting to evaluate constant expression with code"); + BUG(sp, "Attempting to evaluate constant expression with no associated code"); } } |