Mercurial > projects > ldc
comparison dmd2/expression.c @ 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 | 638d16625da2 |
children | dd72f56ad211 |
comparison
equal
deleted
inserted
replaced
1460:a1666b613c15 | 1461:49e6f9d2d33f |
---|---|
692 else if (p->storageClass & STCout) | 692 else if (p->storageClass & STCout) |
693 { | 693 { |
694 arg = arg->modifiableLvalue(sc, arg); | 694 arg = arg->modifiableLvalue(sc, arg); |
695 } | 695 } |
696 | 696 |
697 tb = arg->type->toBasetype(); | |
697 // LDC we don't want this! | 698 // LDC we don't want this! |
698 #if !IN_LLVM | 699 #if !IN_LLVM |
699 // Convert static arrays to pointers | 700 // Convert static arrays to pointers |
700 tb = arg->type->toBasetype(); | |
701 if (tb->ty == Tsarray) | 701 if (tb->ty == Tsarray) |
702 { | 702 { |
703 arg = arg->checkToPointer(); | 703 arg = arg->checkToPointer(); |
704 } | 704 } |
705 #endif | 705 #endif |