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);