aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ProcessImplicitDefs.cpp
diff options
context:
space:
mode:
authorMarkus Böck <markus.boeck02@gmail.com>2022-04-23 00:10:02 +0200
committerMarkus Böck <markus.boeck02@gmail.com>2022-04-23 00:10:31 +0200
commit8ed2bd1e746567ab82e138896db340a6a6781511 (patch)
tree0c7138f06ad62792ebb863f328150fd564d95011 /llvm/lib/CodeGen/ProcessImplicitDefs.cpp
parentbab3d3778de17c0a62cc7fb8757ce942ce332fc2 (diff)
downloadllvm-8ed2bd1e746567ab82e138896db340a6a6781511.zip
llvm-8ed2bd1e746567ab82e138896db340a6a6781511.tar.gz
llvm-8ed2bd1e746567ab82e138896db340a6a6781511.tar.bz2
[mlir][LLVM] Fix `DataLayoutTypeInterface` for opqaue pointers with non-default address space
As a fallback mechanism, if no entry was supplied for a given address space, the size or alignment for a pointer type with the default address space is returned instead. This code currently crashes with opaque pointers, as it tries to construct a typed pointer type from the opaque pointer type, leading to a null pointer dereference when fetching the element type. This patch fixes the issue by handling the opaque pointer cases explicitly. Differential Revision: https://reviews.llvm.org/D124290
Diffstat (limited to 'llvm/lib/CodeGen/ProcessImplicitDefs.cpp')
0 files changed, 0 insertions, 0 deletions