mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 16:41:06 +03:00
Fixed a nasty bug with how interface vtables for class initializers were output, causing some class fields to be skipped.
Fixed a problem in definition of ClassInfos where an invalid constant was potentially used. This needs to be looked into proper as it might happen again in the future.
This commit is contained in:
parent
e0972b0793
commit
8ee1fbca26
3 changed files with 8 additions and 6 deletions
|
@ -1005,6 +1005,7 @@ void DtoConstInitGlobal(VarDeclaration* vd)
|
|||
// refine the global's opaque type to the type of the initializer
|
||||
llvm::cast<LLOpaqueType>(glob->type.get())->refineAbstractTypeTo(initVal->getType());
|
||||
|
||||
assert(!glob->constInit);
|
||||
glob->constInit = initVal;
|
||||
|
||||
bool istempl = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue