[cfe-commits] r132557 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Devang Patel
dpatel at apple.com
Fri Jun 3 10:05:26 PDT 2011
Author: dpatel
Date: Fri Jun 3 12:05:26 2011
New Revision: 132557
URL: http://llvm.org/viewvc/llvm-project?rev=132557&view=rev
Log:
Fix typedef's context.
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=132557&r1=132556&r2=132557&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Fri Jun 3 12:05:26 2011
@@ -555,8 +555,9 @@
// We don't set size information, but do specify where the typedef was
// declared.
unsigned Line = getLineNumber(Ty->getDecl()->getLocation());
- llvm::DIType DbgTy = DBuilder.createTypedef(Src, Ty->getDecl()->getName(),
- Unit, Line);
+ llvm::DIType DbgTy =
+ DBuilder.createTypedef(Src, Ty->getDecl()->getName(), Unit, Line,
+ getContextDescriptor(cast<Decl>(Ty->getDecl()->getDeclContext())));
return DbgTy;
}
More information about the cfe-commits
mailing list