Skip to content

Commit

Permalink
Remove unnecessary NoPointersBitmapPayload template.
Browse files Browse the repository at this point in the history
  • Loading branch information
schveiguy authored and dlang-bot committed Feb 8, 2025
1 parent 2489ab7 commit 935d72a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
5 changes: 0 additions & 5 deletions compiler/test/compilable/extra-files/vcg-ast.d.cg
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ RTInfo!(C)
{
enum immutable(void)* RTInfo = null;

}
NoPointersBitmapPayload!1$?:32=u|64=LU$
{
enum $?:32=uint|64=ulong$[1] NoPointersBitmapPayload = [0$?:32=u|64=LU$];

}
values!(__c_wchar_t)
{
Expand Down
7 changes: 1 addition & 6 deletions druntime/src/object.d
Original file line number Diff line number Diff line change
Expand Up @@ -3769,15 +3769,10 @@ template RTInfoImpl(size_t[] pointerBitmap)
immutable size_t[pointerBitmap.length] RTInfoImpl = pointerBitmap[];
}

template NoPointersBitmapPayload(size_t N)
{
enum size_t[N] NoPointersBitmapPayload = 0;
}

template RTInfo(T)
{
enum pointerBitmap = __traits(getPointerBitmap, T);
static if (pointerBitmap[1 .. $] == NoPointersBitmapPayload!(pointerBitmap.length - 1))
static if (pointerBitmap[1 .. $] == size_t[pointerBitmap.length - 1].init)
enum RTInfo = rtinfoNoPointers;
else
enum RTInfo = RTInfoImpl!(pointerBitmap).ptr;
Expand Down

0 comments on commit 935d72a

Please sign in to comment.