[cfe-commits] r130679 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Nick Lewycky nicholas at mxc.ca
Sun May 1 18:41:48 PDT 2011


Author: nicholas
Date: Sun May  1 20:41:48 2011
New Revision: 130679

URL: http://llvm.org/viewvc/llvm-project?rev=130679&view=rev
Log:
Remove unused variable spotted by GCC.

Devang, can we remove this call entirely? If I try that, "make check" passes
but the call has a side-effect of ensuring that the block's context exists in
the debug info. getContextDescriptor() is used in a void context for that side-
effect elsewhere in this file. Please take a look!

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=130679&r1=130678&r2=130679&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Sun May  1 20:41:48 2011
@@ -2082,8 +2082,7 @@
   unsigned column = getColumnNumber(loc);
   
   // Build the debug-info type for the block literal.
-  llvm::DIDescriptor enclosingContext =  
-    getContextDescriptor(cast<Decl>(blockDecl->getDeclContext()));
+  getContextDescriptor(cast<Decl>(blockDecl->getDeclContext()));
 
   const llvm::StructLayout *blockLayout =
     CGM.getTargetData().getStructLayout(block.StructureType);





More information about the cfe-commits mailing list