diff options
author | Stephen Tozer <stephen.tozer@sony.com> | 2024-06-19 19:52:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 19:52:40 +0100 |
commit | c6ed8289b7c948464855841632f6b6783da1b65a (patch) | |
tree | b302a33ec1302bf755fafa1982900ccb5a0c55a2 /llvm/lib/IR/Module.cpp | |
parent | 02af67c88f393cd6998949cc1bf8075553579a42 (diff) | |
download | llvm-c6ed8289b7c948464855841632f6b6783da1b65a.zip llvm-c6ed8289b7c948464855841632f6b6783da1b65a.tar.gz llvm-c6ed8289b7c948464855841632f6b6783da1b65a.tar.bz2 |
[ADT] Fix incorrect const parent ptr type in ilist (#96059)
Fixes issue reported in: https://github.com/llvm/llvm-project/pull/94224
The recent commit above added an ilist_parent<ParentTy> option, which
added a parent pointer to the ilist_node_base type for the list. The
const methods for returning that parent pointer however were incorrectly
implemented, returning `const ParentPtrTy`, which is equivalent to
`ParentTy * const` rather than `const ParentTy *`. This patch fixes this
by passing around `ParentTy` in ilist's internal logic rather than
`ParentPtrTy`, removing the ability to have a `void*` parent pointer but
cleanly fixing this error.
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions