Skip to content

Commit b20ba76

Browse files
committed
Merge pull request #500 from klickverbot/ldmd-valgrind
LDMD: Avoid unitialized data.
2 parents 18fbc20 + a2a3e40 commit b20ba76

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

driver/ldmd.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -483,11 +483,13 @@ struct Params
483483
pic(false),
484484
emitMap(false),
485485
multiObj(false),
486+
debugInfo(Debug::none),
486487
alwaysStackFrame(false),
487488
profile(false),
488489
verbose(false),
489490
vdmd(false),
490491
logTlsUse(false),
492+
warnings(Warnings::none),
491493
optimize(false),
492494
noObj(false),
493495
objDir(0),

gen/llvmhelpers.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,7 @@ void DtoVarDeclaration(VarDeclaration* vd)
10221022
assert(!vd->aliassym && "Aliases are handled in DtoDeclarationExp.");
10231023

10241024
Logger::println("vdtype = %s", vd->type->toChars());
1025+
LOG_SCOPE
10251026

10261027
if (vd->nestedrefs.dim)
10271028
{

0 commit comments

Comments
 (0)