summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJie Fu <jiefu@tencent.com>2023-11-19 08:19:47 +0800
committerJie Fu <jiefu@tencent.com>2023-11-19 08:19:47 +0800
commit1c1227846425883a3d39ff56700660236a97152c (patch)
tree80c219d00b3b5c255a208be691e21de01b349ea5
parent695662b00c993dc33f7196c6d156c967a0aad6af (diff)
[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.
-rw-r--r--clang/lib/CodeGen/CGObjCGNU.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp
index 68ec457e426a..4ca1a8cce64d 100644
--- a/clang/lib/CodeGen/CGObjCGNU.cpp
+++ b/clang/lib/CodeGen/CGObjCGNU.cpp
@@ -3671,11 +3671,9 @@ llvm::Function *CGObjCGNU::ModuleInitFunction() {
GenerateProtocolHolderCategory();
llvm::StructType *selStructTy = dyn_cast<llvm::StructType>(SelectorElemTy);
- llvm::Type *selStructPtrTy = SelectorTy;
if (!selStructTy) {
selStructTy = llvm::StructType::get(CGM.getLLVMContext(),
{ PtrToInt8Ty, PtrToInt8Ty });
- selStructPtrTy = llvm::PointerType::getUnqual(selStructTy);
}
// Generate statics list: