diff options
author | John Hodge <tpg@mutabah.net> | 2018-02-01 18:03:08 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-02-01 18:03:08 +0800 |
commit | 05e399b35d71118b375510d35ca5a89876bcbfcd (patch) | |
tree | f59c224de542f5c7054f856544b929336d349152 /src/trans/target.cpp | |
parent | 22049b6571c64af9c6b350ae8761ddbccebde7f6 (diff) | |
download | mrust-05e399b35d71118b375510d35ca5a89876bcbfcd.tar.gz |
Codegen C - Minor fixes from target structure layout
Diffstat (limited to 'src/trans/target.cpp')
-rw-r--r-- | src/trans/target.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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: |