From 0c6a40485d82fb8efa820148d20231ee3b52b8e0 Mon Sep 17 00:00:00 2001 From: Frits van Bommel Date: Tue, 2 Jun 2009 19:54:02 +0200 Subject: [PATCH] Fix a segfault in ldc2 (use of an uninitialized variable). --- dmd2/expression.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmd2/expression.c b/dmd2/expression.c index 14211062..ef2d29a6 100644 --- a/dmd2/expression.c +++ b/dmd2/expression.c @@ -694,10 +694,10 @@ void functionArguments(Loc loc, Scope *sc, TypeFunction *tf, Expressions *argume 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();