mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +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:
parent
1495247f51
commit
acc6efa176
@ -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…
x
Reference in New Issue
Block a user