Added back NULL returns accidentally removed in 8ff3a8060.

No functionality change, as the return value wasn't used
anywhere.
This commit is contained in:
David Nadlinger 2013-02-08 16:23:31 +01:00
parent 8c2c8a9a14
commit d13a997bd0

View file

@ -1263,6 +1263,8 @@ DValue* DtoDeclarationExp(Dsymbol* declaration)
{
llvm_unreachable("Unimplemented Declaration type for DeclarationExp.");
}
return 0;
}
// does pretty much the same as DtoDeclarationExp, except it doesn't initialize, and only handles var declarations
@ -1430,7 +1432,8 @@ DValue* DtoInitializer(LLValue* target, Initializer* init)
{
if (!init)
return 0;
else if (ExpInitializer* ex = init->isExpInitializer())
if (ExpInitializer* ex = init->isExpInitializer())
{
Logger::println("expression initializer");
assert(ex->exp);
@ -1452,6 +1455,8 @@ DValue* DtoInitializer(LLValue* target, Initializer* init)
{
llvm_unreachable("Unknown initializer type.");
}
return 0;
}
//////////////////////////////////////////////////////////////////////////////////////////