mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-15 20:33:14 +01:00
Fix potential latent struct initialization bug.
Apparently the initializer array never was actually unsorted so far.
This commit is contained in:
@@ -104,7 +104,7 @@ llvm::Constant* IrTypeAggr::createInitializerConstant(
|
||||
|
||||
IF_LOG Logger::println("adding field %s", vd->toChars());
|
||||
|
||||
constants.push_back(FillSArrayDims(vd->type, initializers[i].second));
|
||||
constants.push_back(FillSArrayDims(vd->type, data[i].second));
|
||||
offset = vd->offset + vd->type->size();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user