diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-03-06 13:01:18 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-03-06 13:16:21 +0100 |
commit | 9b6d0e84b432d95b3bfdf5a19b8abadde768489c (patch) | |
tree | 4fa6d49cb0270b3e1c55ef27b74838f2a1569814 /src/codegen/impl_debug.rs | |
parent | 3a6864cf9a76916c002c41a8ae813d9f8bd9853e (diff) |
Work around a libclang bug / limitation.
For references, libclang returns the size and align of the pointee.
This actually matches how C++'s sizeof() and alignof() works, for some reason,
though in this case we really want to know the pointer's layout.
Anyhow, we know the target pointer size, so manually handle this case.
Filed https://bugs.llvm.org/show_bug.cgi?id=40975 for this.
Diffstat (limited to 'src/codegen/impl_debug.rs')
0 files changed, 0 insertions, 0 deletions