# HG changeset patch # User Tomas Lindquist Olsen # Date 1217706709 -7200 # Node ID d82ebdba4191d928513d97bd6536f0bc68389f57 # Parent b975f29b7256487229f849ec67d51ab78df29f6d Fixed debug info and lazy arguments. diff -r b975f29b7256 -r d82ebdba4191 gen/functions.cpp --- a/gen/functions.cpp Sat Aug 02 21:20:31 2008 +0200 +++ b/gen/functions.cpp Sat Aug 02 21:51:49 2008 +0200 @@ -595,8 +595,10 @@ VarDeclaration* vd = argsym->isVarDeclaration(); assert(vd); + bool refoutlazy = vd->storage_class & (STCref | STCout | STClazy); + // FIXME: llvm seems to want an alloca/byval for debug info - if (!vd->needsStorage || vd->nestedref || vd->isRef() || vd->isOut()) + if (!vd->needsStorage || vd->nestedref || refoutlazy) { Logger::println("skipping arg storage for (%s) %s ", vd->loc.toChars(), vd->toChars()); continue;