[clang] 1c12278 - [clang] Remove unused selStructPtrTy in CGObjCGNU.cpp (NFC)
Jie Fu via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 18 16:20:39 PST 2023
Author: Jie Fu
Date: 2023-11-19T08:19:47+08:00
New Revision: 1c1227846425883a3d39ff56700660236a97152c
URL: https://github.com/llvm/llvm-project/commit/1c1227846425883a3d39ff56700660236a97152c
DIFF: https://github.com/llvm/llvm-project/commit/1c1227846425883a3d39ff56700660236a97152c.diff
LOG: [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.
Added:
Modified:
clang/lib/CodeGen/CGObjCGNU.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp
index 68ec457e426a933..4ca1a8cce64d895 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:
More information about the cfe-commits
mailing list