From: Nick Lewycky Date: Mon, 2 May 2011 00:40:24 +0000 (+0000) Subject: Remove a dead variable flagged by gcc's -Wunused-but-set-variable. No X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=635ca1bad3cce84cbe31a5574416e055c5e9f054;p=clang Remove a dead variable flagged by gcc's -Wunused-but-set-variable. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130672 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp index d28cfa57df..9ef2b98f9b 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -2005,12 +2005,10 @@ llvm::Function *CGObjCGNU::ModuleInitFunction() { const llvm::StructType *SelStructTy = dyn_cast( SelectorTy->getElementType()); const llvm::Type *SelStructPtrTy = SelectorTy; - bool isSelOpaque = false; if (SelStructTy == 0) { SelStructTy = llvm::StructType::get(VMContext, PtrToInt8Ty, PtrToInt8Ty, NULL); SelStructPtrTy = llvm::PointerType::getUnqual(SelStructTy); - isSelOpaque = true; } // Name the ObjC types to make the IR a bit easier to read