diff options
Diffstat (limited to 'libacc/acc.cpp')
-rw-r--r-- | libacc/acc.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libacc/acc.cpp b/libacc/acc.cpp index 483a1ac62..6e195033a 100644 --- a/libacc/acc.cpp +++ b/libacc/acc.cpp @@ -4891,11 +4891,15 @@ class Compiler : public ErrorSink { int argCount = 0; for (Type* pP = pDecl->pTail; pP; pP = pP->pTail) { Type* pArg = pP->pHead; - addLocalSymbol(pArg); + if (pArg->id) { + addLocalSymbol(pArg); + } /* read param name and compute offset */ size_t alignment = pGen->stackAlignmentOf(pArg); a = (a + alignment - 1) & ~ (alignment-1); - VI(pArg->id)->pAddress = (void*) a; + if (pArg->id) { + VI(pArg->id)->pAddress = (void*) a; + } a = a + pGen->stackSizeOf(pArg); argCount++; } |