about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-06-05 15:06:47 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-06-05 15:11:33 -0700
commit8972588583398b207f0f7033b2af20bca509eba7 (patch)
tree98ca37e59e085585c27e57701e2ddb2ec0298117 /src/rt/rust_kernel.cpp
parent7daf986aeca81a72be5869a5a41d4fde753eca0f (diff)
downloadrust-8972588583398b207f0f7033b2af20bca509eba7.tar.gz
rust-8972588583398b207f0f7033b2af20bca509eba7.zip
Dereference classes with dtors only on a field access
A class with a dtor has a different representation (a pair of a bit field
and a pointer to the class itself), and previously, the trans code
was selecting out the second field on any reference to a variable whose
type was a class with a dtor. This turned out to be wrong in the case where
a closure captures a variable with such a type. Changed the code to only
insert the field selection on a class field access.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions