From 1af2b2169a6b1c4f7a402ccdca55bf3ca45e3b59 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 10 Mar 2008 19:29:39 +0100 Subject: [PATCH] [svn r151] fixed #29: out contracts work now --- dmd/mars.c | 2 +- gen/statements.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dmd/mars.c b/dmd/mars.c index 22bc46cb..a4c5c2ec 100644 --- a/dmd/mars.c +++ b/dmd/mars.c @@ -261,7 +261,7 @@ int main(int argc, char *argv[]) global.params.useAssert = 0; global.params.useInvariants = 0; global.params.useIn = 1; - global.params.useOut = 0; + global.params.useOut = 1; global.params.useArrayBounds = 0; global.params.useSwitchError = 0; global.params.useInline = 0; // this one messes things up to a point where codegen breaks diff --git a/gen/statements.cpp b/gen/statements.cpp index efd56b19..6f4e956f 100644 --- a/gen/statements.cpp +++ b/gen/statements.cpp @@ -949,7 +949,6 @@ void LabelStatement::toIR(IRState* p) LOG_SCOPE; assert(tf == NULL); - assert(!isReturnLabel); llvm::BasicBlock* oldend = gIR->scopeend(); if (llvmBB)