changeset 1438:c363d131c1ef

Add some missing returns.
author Frits van Bommel <fvbommel wxs.nl>
date Sat, 30 May 2009 23:48:22 +0200
parents efa34a3bb8fc
children 679ac907c82f
files gen/abi.cpp gen/passes/GarbageCollect2Stack.cpp
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gen/abi.cpp	Sat May 30 14:57:48 2009 -0600
+++ b/gen/abi.cpp	Sat May 30 23:48:22 2009 +0200
@@ -132,7 +132,7 @@
         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*)
     {
--- a/gen/passes/GarbageCollect2Stack.cpp	Sat May 30 14:57:48 2009 -0600
+++ b/gen/passes/GarbageCollect2Stack.cpp	Sat May 30 23:48:22 2009 +0200
@@ -262,6 +262,7 @@
         
         bool doInitialization(Module &M) {
             this->M = &M;
+            return false;
         }
         
         bool runOnFunction(Function &F);