summaryrefslogtreecommitdiff
path: root/src/hir_conv/constant_evaluation.cpp
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/hir_conv/constant_evaluation.cpp
parent892b1029b5c9fa2bc12316dcf927d1aa36135538 (diff)
downloadmrust-55bc4a9e019b1b5e51fec58030a30ea9146de45c.tar.gz
HIR/MIR - VTable work
Diffstat (limited to 'src/hir_conv/constant_evaluation.cpp')
-rw-r--r--src/hir_conv/constant_evaluation.cpp7
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");
}
}