mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Fix a segfault in ldc2 (use of an uninitialized variable).
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user