Fix a segfault in ldc2 (use of an uninitialized variable).

This commit is contained in:
Frits van Bommel
2009-06-02 19:54:02 +02:00
parent 59f5636391
commit 0c6a40485d

View File

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