Mercurial > projects > ldc
changeset 1461:49e6f9d2d33f
Fix a segfault in ldc2 (use of an uninitialized variable).
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Tue, 02 Jun 2009 19:54:02 +0200 |
parents | a1666b613c15 |
children | f0423003caa6 |
files | dmd2/expression.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dmd2/expression.c Tue Jun 02 19:18:48 2009 +0200 +++ b/dmd2/expression.c Tue Jun 02 19:54:02 2009 +0200 @@ -694,10 +694,10 @@ arg = arg->modifiableLvalue(sc, arg); } + tb = arg->type->toBasetype(); // LDC we don't want this! #if !IN_LLVM // Convert static arrays to pointers - tb = arg->type->toBasetype(); if (tb->ty == Tsarray) { arg = arg->checkToPointer();