From d13a997bd044bf084c2875163cc45b89f6c2ddf5 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Fri, 8 Feb 2013 16:23:31 +0100 Subject: [PATCH] Added back NULL returns accidentally removed in 8ff3a8060. No functionality change, as the return value wasn't used anywhere. --- gen/llvmhelpers.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index a5e0df49..ef570268 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -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; } //////////////////////////////////////////////////////////////////////////////////////////