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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir_conv/constant_evaluation.cpp b/src/hir_conv/constant_evaluation.cpp
index 9ccd2033..c9f25f60 100644
--- a/src/hir_conv/constant_evaluation.cpp
+++ b/src/hir_conv/constant_evaluation.cpp
@@ -572,7 +572,7 @@ namespace {
}
};
- if( &*expr != nullptr )
+ if( expr.get() != nullptr )
{
Visitor v { this->m_crate };
(*expr).visit(v);