summaryrefslogtreecommitdiff
path: root/src/hir/expr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/expr.hpp')
-rw-r--r--src/hir/expr.hpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/hir/expr.hpp b/src/hir/expr.hpp
index 62bc4610..e22c1ab8 100644
--- a/src/hir/expr.hpp
+++ b/src/hir/expr.hpp
@@ -604,11 +604,7 @@ struct ExprNode_Literal:
(ByteString,
m_res_type = ::HIR::TypeRef::Data::make_Borrow({
::HIR::BorrowType::Shared,
- box$( ::HIR::TypeRef( ::HIR::TypeRef::Data::make_Array({
- box$( ::HIR::TypeRef(::HIR::TypeRef::Data::make_Primitive(::HIR::CoreType::U8)) ),
- ::HIR::ExprPtr(),
- e.size()
- }) ) )
+ box$( ::HIR::TypeRef::new_array( ::HIR::CoreType::U8, e.size() ) )
});
)
)