mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-02 21:13:13 +01:00
LDMD: Avoid unitialized data.
Found using Valgrind.
This commit is contained in:
@@ -483,11 +483,13 @@ struct Params
|
||||
pic(false),
|
||||
emitMap(false),
|
||||
multiObj(false),
|
||||
debugInfo(Debug::none),
|
||||
alwaysStackFrame(false),
|
||||
profile(false),
|
||||
verbose(false),
|
||||
vdmd(false),
|
||||
logTlsUse(false),
|
||||
warnings(Warnings::none),
|
||||
optimize(false),
|
||||
noObj(false),
|
||||
objDir(0),
|
||||
|
||||
@@ -1022,6 +1022,7 @@ void DtoVarDeclaration(VarDeclaration* vd)
|
||||
assert(!vd->aliassym && "Aliases are handled in DtoDeclarationExp.");
|
||||
|
||||
Logger::println("vdtype = %s", vd->type->toChars());
|
||||
LOG_SCOPE
|
||||
|
||||
if (vd->nestedrefs.dim)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user