diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-08-01 23:26:36 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-08-01 23:26:36 -0700 |
| commit | 44f833129c81bfa7117743fc7d54c44db09cc240 (patch) | |
| tree | 12f9d4dcf288019db49293c55935edca7e9262ab /lib/libcxx/include/array | |
| parent | 9e4091200e165db808216ad2a340c6ed4f18c494 (diff) | |
| download | zig-44f833129c81bfa7117743fc7d54c44db09cc240.tar.gz zig-44f833129c81bfa7117743fc7d54c44db09cc240.zip | |
LLVM backends: work around poorly designed C API
As part of the Opaque Pointers upgrade documentation, LLVM says that the
function LLVMGetGEPSourceElementType() can be used to obtain element
type information in lieu of LLVMGetElementType(), however, this function
actually returns the struct type, not the field type. The GEP
instruction does store the information we need, however, this is not
exposed in the C API. It seems like they accidentally exposed the wrong
field, because one would never need the struct type since one must
already pass it directly to the GEP instruction, so one will always have
it handy, whereas one will usually not have the field type handy.
Diffstat (limited to 'lib/libcxx/include/array')
0 files changed, 0 insertions, 0 deletions
