]> granicus.if.org Git - clang/commitdiff
Remove unused variable spotted by GCC.
authorNick Lewycky <nicholas@mxc.ca>
Mon, 2 May 2011 01:41:48 +0000 (01:41 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 2 May 2011 01:41:48 +0000 (01:41 +0000)
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!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130679 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 87b02acec7b9a52dcd60b207d7d6df11bbbca797..6ce49b5f756e55b157c979ca199b121c0f151a5a 100644 (file)
@@ -2082,8 +2082,7 @@ void CGDebugInfo::EmitDeclareOfBlockLiteralArgVariable(const CGBlockInfo &block,
   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);