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;
 }
 


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to