summaryrefslogtreecommitdiff
path: root/src/hir_conv/constant_evaluation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir_conv/constant_evaluation.cpp')
-rw-r--r--src/hir_conv/constant_evaluation.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/hir_conv/constant_evaluation.cpp b/src/hir_conv/constant_evaluation.cpp
index fe1c46ca..286981f7 100644
--- a/src/hir_conv/constant_evaluation.cpp
+++ b/src/hir_conv/constant_evaluation.cpp
@@ -379,9 +379,12 @@ namespace {
}
}
- const_cast<HIR::ExprNode&>(*fcn.m_code).visit( *this );
- assert( ! m_rv.is_Invalid() );
- //TODO(node.span(), "exec const fn - " << node.m_path);
+ // Call by running the code directly
+ {
+ TRACE_FUNCTION_F("Call const fn " << node.m_path);
+ const_cast<HIR::ExprNode&>(*fcn.m_code).visit( *this );
+ assert( ! m_rv.is_Invalid() );
+ }
for(unsigned int i = 0; i < fcn.m_args.size(); i ++ )
{