From c8b10643f9fe32147ee0bc23d80ceb19242c1b90 Mon Sep 17 00:00:00 2001 From: Frits van Bommel Date: Sat, 30 May 2009 23:48:22 +0200 Subject: [PATCH] Add some missing returns. --- gen/abi.cpp | 2 +- gen/passes/GarbageCollect2Stack.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gen/abi.cpp b/gen/abi.cpp index 4be4f3a2..4551c1ce 100644 --- a/gen/abi.cpp +++ b/gen/abi.cpp @@ -132,7 +132,7 @@ struct X86_struct_to_register : ABIRewrite assert(dv->isLVal()); LLValue* mem = dv->getLVal(); const LLType* t = LLIntegerType::get(dty->size()*8); - DtoLoad(DtoBitCast(mem, getPtrToType(t))); + return DtoLoad(DtoBitCast(mem, getPtrToType(t))); } const LLType* type(Type* t, const LLType*) { diff --git a/gen/passes/GarbageCollect2Stack.cpp b/gen/passes/GarbageCollect2Stack.cpp index 1938a0d4..6d1bf555 100644 --- a/gen/passes/GarbageCollect2Stack.cpp +++ b/gen/passes/GarbageCollect2Stack.cpp @@ -262,6 +262,7 @@ namespace { bool doInitialization(Module &M) { this->M = &M; + return false; } bool runOnFunction(Function &F);