Skip to content
  • John McCall's avatar
    Currently we're initializing the vtable pointers of a class only after · 769250ea
    John McCall authored
    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
    769250ea
Loading