Debug info: allow for boxed arguments. rdar://problem/15035486

Swift SVN r8713
This commit is contained in:
Adrian Prantl
2013-09-27 00:31:20 +00:00
parent 355ee1e016
commit 61b5d055ef
4 changed files with 58 additions and 28 deletions

View File

@@ -2126,11 +2126,11 @@ void IRGenSILFunction::visitAllocBoxInst(swift::AllocBoxInst *i) {
setLoweredExplosion(boxValue, box);
setLoweredAddress(ptrValue, addr.getAddress());
if (IGM.DebugInfo)
IGM.DebugInfo->emitBoxVariableDeclaration
IGM.DebugInfo->emitStackVariableDeclaration
(Builder,
addr.getAddress().getAddress(),
DebugTypeInfo(i->getElementType().getSwiftType(), type),
Name);
Name, i, /* Boxed */true);
}