summaryrefslogtreecommitdiff
path: root/src/codegen/impl_debug.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2019-03-06 13:01:18 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2019-03-06 13:16:21 +0100
commit9b6d0e84b432d95b3bfdf5a19b8abadde768489c (patch)
tree4fa6d49cb0270b3e1c55ef27b74838f2a1569814 /src/codegen/impl_debug.rs
parent3a6864cf9a76916c002c41a8ae813d9f8bd9853e (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