projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1495247
)
Do not forget last element, function, while creating Subprogram definition MDNode...
author
Devang Patel
<dpatel@apple.com>
Sun, 27 Jun 2010 21:04:31 +0000
(21:04 +0000)
committer
Devang Patel
<dpatel@apple.com>
Sun, 27 Jun 2010 21:04:31 +0000
(21:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106985
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/DebugInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/DebugInfo.cpp
b/lib/Analysis/DebugInfo.cpp
index feb7a303d0ecf230194581d9470024d74ff671e3..7636716f053cefe86736a94aaff8a72dbd046233 100644
(file)
--- 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));
}