Skip to content

Commit 1c12278

Browse files
committed
[clang] Remove unused selStructPtrTy in CGObjCGNU.cpp (NFC)
/llvm-project/clang/lib/CodeGen/CGObjCGNU.cpp:3674:15: error: variable 'selStructPtrTy' set but not used [-Werror,-Wunused-but-set-variable] llvm::Type *selStructPtrTy = SelectorTy; ^ 1 error generated.
1 parent 695662b commit 1c12278

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clang/lib/CodeGen/CGObjCGNU.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3671,11 +3671,9 @@ llvm::Function *CGObjCGNU::ModuleInitFunction() {
36713671
GenerateProtocolHolderCategory();
36723672

36733673
llvm::StructType *selStructTy = dyn_cast<llvm::StructType>(SelectorElemTy);
3674-
llvm::Type *selStructPtrTy = SelectorTy;
36753674
if (!selStructTy) {
36763675
selStructTy = llvm::StructType::get(CGM.getLLVMContext(),
36773676
{ PtrToInt8Ty, PtrToInt8Ty });
3678-
selStructPtrTy = llvm::PointerType::getUnqual(selStructTy);
36793677
}
36803678

36813679
// Generate statics list:

0 commit comments

Comments
 (0)