diff dmd/func.c @ 245:d61ce72c39ab trunk

[svn r262] Fixed debug info for normal function parameters. Fixed debug info for pointers to basic types.
author lindquist
date Mon, 09 Jun 2008 12:43:16 +0200
parents a58d8f4b84df
children 2b72433d5c8c
line wrap: on
line diff
--- a/dmd/func.c	Mon Jun 09 09:37:08 2008 +0200
+++ b/dmd/func.c	Mon Jun 09 12:43:16 2008 +0200
@@ -781,6 +781,11 @@
 		if (v->storage_class & STClazy)
 		    v->storage_class |= STCin;
 		v->semantic(sc2);
+    #if IN_LLVM
+        // LLVMDC: the argument needs an addres if we want to attach debug info to it.
+        if (global.params.symdebug)
+            v->needsStorage = true;
+    #endif
 		if (!sc2->insert(v))
 		    error("parameter %s.%s is already defined", toChars(), v->toChars());
 		else