]> granicus.if.org Git - clang/commitdiff
Remove a dead variable flagged by gcc's -Wunused-but-set-variable. No
authorNick Lewycky <nicholas@mxc.ca>
Mon, 2 May 2011 00:40:24 +0000 (00:40 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 2 May 2011 00:40:24 +0000 (00:40 +0000)
functionality change.

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

lib/CodeGen/CGObjCGNU.cpp

index d28cfa57df02024f0144022ac6da1fbbb69d1f39..9ef2b98f9b77d4cbb8436cd1e8f5b6a8de1a4aaf 100644 (file)
@@ -2005,12 +2005,10 @@ llvm::Function *CGObjCGNU::ModuleInitFunction() {
   const llvm::StructType *SelStructTy = dyn_cast<llvm::StructType>(
           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