mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 16:11:08 +03:00
Added back NULL returns accidentally removed in 8ff3a8060
.
No functionality change, as the return value wasn't used anywhere.
This commit is contained in:
parent
8c2c8a9a14
commit
d13a997bd0
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue