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:
parent
d3a1ef7fea
commit
858a0f3664
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user