diff options
author | Devang Patel <dpatel@apple.com> | 2010-06-27 21:04:31 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-06-27 21:04:31 +0000 |
commit | acc6efa17659b6ffba30d277ce77906837177e61 (patch) | |
tree | c535817e668b521f4673be22d5e91919660df3c4 /lib/Analysis/DebugInfo.cpp | |
parent | 1495247f517c0ac3aeeb9e6c7c0205dd7849d332 (diff) |
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
Diffstat (limited to 'lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | lib/Analysis/DebugInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index feb7a303d0..7636716f05 100644 --- a/lib/Analysis/DebugInfo.cpp +++ b/lib/Analysis/DebugInfo.cpp @@ -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)); } |