about summary refs log tree commit diff
path: root/src/rt/rust_shape.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-06-25 22:11:19 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-06-26 11:14:39 -0700
commit91e44ea05651ea9d9fda1e903009e3a3390dd7c0 (patch)
tree646f8422729456038648df5165ca5d5d2334d00e /src/rt/rust_shape.cpp
parentcf69604551324f68d1fc7ab0386ecbe9e1aaa504 (diff)
downloadrust-91e44ea05651ea9d9fda1e903009e3a3390dd7c0.tar.gz
rust-91e44ea05651ea9d9fda1e903009e3a3390dd7c0.zip
Be a little more clever about calculating sizes for class types
We could try to calculate the size of a partially-converted class type,
and run into an LLVM error because we were trying to calculate the size
of a named struct whose fields hadn't yet be filled in. The issue can be
dodged by extending simplify_type to convert classes to isomorphic
structural records, just for the purposes of size calculations.

(for real this time) Closes #2718
Diffstat (limited to 'src/rt/rust_shape.cpp')
0 files changed, 0 insertions, 0 deletions