diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-08-15 09:54:15 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-08-15 21:35:09 +0200 |
commit | 9fb12ee6fb75be4f980a235dc3f28a29ecc80de0 (patch) | |
tree | 312422acdcdb7fb9d91648ec8c2da6021a07b10d /gcc/d/d-codegen.cc | |
parent | 23e8c0b0d99f585499baddda70af6a8b26f49bea (diff) | |
download | gcc-9fb12ee6fb75be4f980a235dc3f28a29ecc80de0.zip gcc-9fb12ee6fb75be4f980a235dc3f28a29ecc80de0.tar.gz gcc-9fb12ee6fb75be4f980a235dc3f28a29ecc80de0.tar.bz2 |
d: Field names of anonymous delegates should be same as regular delegate types.
Doesn't change anything in the code generation or ABI, but makes it
consistent with regular delegates as names would match up when
inspecting tree dumps.
gcc/d/ChangeLog:
* d-codegen.cc (build_delegate_cst): Give anonymous delegate field
names same as per ABI spec.
Diffstat (limited to 'gcc/d/d-codegen.cc')
-rw-r--r-- | gcc/d/d-codegen.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/d/d-codegen.cc b/gcc/d/d-codegen.cc index 3fd4bee..d02da1f 100644 --- a/gcc/d/d-codegen.cc +++ b/gcc/d/d-codegen.cc @@ -419,8 +419,8 @@ build_delegate_cst (tree method, tree object, Type *type) { /* Convert a function method into an anonymous delegate. */ ctype = make_struct_type ("delegate()", 2, - get_identifier ("object"), TREE_TYPE (object), - get_identifier ("func"), TREE_TYPE (method)); + get_identifier ("ptr"), TREE_TYPE (object), + get_identifier ("funcptr"), TREE_TYPE (method)); TYPE_DELEGATE (ctype) = 1; } |