1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Do not forget last element, function, while creating Subprogram definition MDNode from subprogram declare MDNode.

llvm-svn: 106985
This commit is contained in:
Devang Patel 2010-06-27 21:04:31 +00:00
parent d3a1ef7fea
commit 858a0f3664

View File

@ -997,7 +997,8 @@ DISubprogram DIFactory::CreateSubprogramDefinition(DISubprogram &SPDeclaration)
DeclNode->getOperand(12), // VIndex
DeclNode->getOperand(13), // Containting Type
DeclNode->getOperand(14), // isArtificial
DeclNode->getOperand(15) // isOptimized
DeclNode->getOperand(15), // isOptimized
SPDeclaration.getFunction()
};
return DISubprogram(MDNode::get(VMContext, &Elts[0], 16));
}