[llvm-commits] [llvm] r106985 - /llvm/trunk/lib/Analysis/DebugInfo.cpp
Devang Patel
dpatel at apple.com
Sun Jun 27 14:04:32 PDT 2010
Author: dpatel
Date: Sun Jun 27 16:04:31 2010
New Revision: 106985
URL: http://llvm.org/viewvc/llvm-project?rev=106985&view=rev
Log:
Do not forget last element, function, while creating Subprogram definition MDNode from subprogram declare MDNode.
Modified:
llvm/trunk/lib/Analysis/DebugInfo.cpp
Modified: llvm/trunk/lib/Analysis/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/DebugInfo.cpp?rev=106985&r1=106984&r2=106985&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/DebugInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/DebugInfo.cpp Sun Jun 27 16:04:31 2010
@@ -997,7 +997,8 @@
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));
}
More information about the llvm-commits
mailing list