From 05e399b35d71118b375510d35ca5a89876bcbfcd Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 1 Feb 2018 18:03:08 +0800 Subject: Codegen C - Minor fixes from target structure layout --- src/trans/target.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/trans/target.cpp') diff --git a/src/trans/target.cpp b/src/trans/target.cpp index b67bc0ea..cf4d0fbc 100644 --- a/src/trans/target.cpp +++ b/src/trans/target.cpp @@ -571,7 +571,7 @@ namespace { if( e.size == SIZE_MAX ) { // TODO: Ensure that this is the last item - ASSERT_BUG(sp, &e == &ents.back(), "Unsized item isn't the last item"); + ASSERT_BUG(sp, &e == &ents.back(), "Unsized item isn't the last item in " << ty); cur_ofs = SIZE_MAX; } else @@ -617,12 +617,12 @@ namespace { } } break; TU_ARM(ty.m_data, Borrow, _te) { (void)_te; - out_path.sub_fields.push_back(0); + //out_path.sub_fields.push_back(0); Target_GetSizeOf(sp, resolve, ty, out_path.size); return true; } break; TU_ARM(ty.m_data, Function, _te) (void)_te; - out_path.sub_fields.push_back(0); + //out_path.sub_fields.push_back(0); Target_GetSizeOf(sp, resolve, ty, out_path.size); return true; default: -- cgit v1.2.3