mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
Do not forget last element, function, while creating Subprogram definition MDNode from subprogram declare MDNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106985 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -997,7 +997,8 @@ DISubprogram DIFactory::CreateSubprogramDefinition(DISubprogram &SPDeclaration)
|
|||||||
DeclNode->getOperand(12), // VIndex
|
DeclNode->getOperand(12), // VIndex
|
||||||
DeclNode->getOperand(13), // Containting Type
|
DeclNode->getOperand(13), // Containting Type
|
||||||
DeclNode->getOperand(14), // isArtificial
|
DeclNode->getOperand(14), // isArtificial
|
||||||
DeclNode->getOperand(15) // isOptimized
|
DeclNode->getOperand(15), // isOptimized
|
||||||
|
SPDeclaration.getFunction()
|
||||||
};
|
};
|
||||||
return DISubprogram(MDNode::get(VMContext, &Elts[0], 16));
|
return DISubprogram(MDNode::get(VMContext, &Elts[0], 16));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user