diff options
author | John McCall <rjmccall@apple.com> | 2010-09-17 02:31:44 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-09-17 02:31:44 +0000 |
commit | 769250ea70ca5af63c014453332bfa1d77ed556b (patch) | |
tree | c516d76aa1e7ebf19643ad0dad3188c0aee836a5 /clang/test/CodeGen/integer-overflow.c | |
parent | 6fe64b528d6b8e666da2f2bda62ff1565a9be601 (diff) | |
download | llvm-769250ea70ca5af63c014453332bfa1d77ed556b.zip llvm-769250ea70ca5af63c014453332bfa1d77ed556b.tar.gz llvm-769250ea70ca5af63c014453332bfa1d77ed556b.tar.bz2 |
Currently we're initializing the vtable pointers of a class only after
the bases are completely initialized. This won't work --- base
initializer expressions can rely on the vtables having been set up.
Check for uses of 'this' in the initializers and force a vtable
initialization if found.
This might not be good enough; we might need to extend this to handle
the possibility of arbitrary code finding an external reference to this
(not yet completely-constructed!) object and accessing through it,
in which case we'll probably find ourselves doing a lot more unnecessary
stores.
llvm-svn: 114153
Diffstat (limited to 'clang/test/CodeGen/integer-overflow.c')
0 files changed, 0 insertions, 0 deletions