diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-05-02 01:41:48 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-05-02 01:41:48 +0000 |
commit | fc49f72b58c2ee4c74a538666f4cbaa2ed118cbf (patch) | |
tree | bd286071d4f82c8e6b519a72aa12e343709ea519 /clang/lib/CodeGen | |
parent | 82e478009f72a0a1b3aeb7e33519d8ad0595c944 (diff) | |
download | bcm5719-llvm-fc49f72b58c2ee4c74a538666f4cbaa2ed118cbf.tar.gz bcm5719-llvm-fc49f72b58c2ee4c74a538666f4cbaa2ed118cbf.zip |
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!
llvm-svn: 130679
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 87b02acec7b..6ce49b5f756 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -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); |