Skip to content

Commit

Permalink
correct D2 => D1 conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Mar 31, 2013
1 parent db81d20 commit b69475b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/glue.c
@@ -1,6 +1,6 @@

// Compiler implementation of the D programming language
// Copyright (c) 1999-2012 by Digital Mars
// Copyright (c) 1999-2013 by Digital Mars
// All Rights Reserved
// written by Walter Bright
// http://www.digitalmars.com
Expand Down Expand Up @@ -904,7 +904,7 @@ void FuncDeclaration::toObjFile(int multiobj)
* _c_trace_epi();
*/
StringExp *se = new StringExp(0, s->Sident);
se->type = new TypeDArray(Type::tchar->invariantOf());
se->type = new TypeDArray(Type::tchar);
se->type = se->type->semantic(0, NULL);
Expressions *exps = new Expressions();
exps->push(se);
Expand All @@ -921,7 +921,7 @@ void FuncDeclaration::toObjFile(int multiobj)
Statement *sf = new ExpStatement(loc, e);

Statement *stf;
if (sbody->blockExit(tf->isnothrow) == BEfallthru)
if (sbody->blockExit(false) == BEfallthru)
stf = new CompoundStatement(0, sbody, sf);
else
stf = new TryFinallyStatement(0, sbody, sf);
Expand Down

0 comments on commit b69475b

Please sign in to comment.