[polly] f42785d - [Polly] Remove unused variable 'IdentTy' in LoopGeneratorsKMP.cpp (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 17 04:48:47 PDT 2024
Author: Jie Fu
Date: 2024-10-17T19:48:38+08:00
New Revision: f42785d0c8886a65fbdd160b0ef47baa5931e582
URL: https://github.com/llvm/llvm-project/commit/f42785d0c8886a65fbdd160b0ef47baa5931e582
DIFF: https://github.com/llvm/llvm-project/commit/f42785d0c8886a65fbdd160b0ef47baa5931e582.diff
LOG: [Polly] Remove unused variable 'IdentTy' in LoopGeneratorsKMP.cpp (NFC)
/llvm-project/polly/lib/CodeGen/LoopGeneratorsKMP.cpp:396:15: error: unused variable 'IdentTy' [-Werror,-Wunused-variable]
StructType *IdentTy =
^
/llvm-project/polly/lib/CodeGen/LoopGeneratorsKMP.cpp:460:15: error: unused variable 'IdentTy' [-Werror,-Wunused-variable]
StructType *IdentTy =
^
2 errors generated.
Added:
Modified:
polly/lib/CodeGen/LoopGeneratorsKMP.cpp
Removed:
################################################################################
diff --git a/polly/lib/CodeGen/LoopGeneratorsKMP.cpp b/polly/lib/CodeGen/LoopGeneratorsKMP.cpp
index 45800b105ea72c..0cfe18b0c12175 100644
--- a/polly/lib/CodeGen/LoopGeneratorsKMP.cpp
+++ b/polly/lib/CodeGen/LoopGeneratorsKMP.cpp
@@ -393,8 +393,6 @@ void ParallelLoopGeneratorKMP::createCallStaticInit(Value *GlobalThreadID,
void ParallelLoopGeneratorKMP::createCallStaticFini(Value *GlobalThreadID) {
const std::string Name = "__kmpc_for_static_fini";
Function *F = M->getFunction(Name);
- StructType *IdentTy =
- StructType::getTypeByName(M->getContext(), "struct.ident_t");
// If F is not available, declare it.
if (!F) {
@@ -457,8 +455,6 @@ Value *ParallelLoopGeneratorKMP::createCallDispatchNext(Value *GlobalThreadID,
const std::string Name =
is64BitArch() ? "__kmpc_dispatch_next_8" : "__kmpc_dispatch_next_4";
Function *F = M->getFunction(Name);
- StructType *IdentTy =
- StructType::getTypeByName(M->getContext(), "struct.ident_t");
// If F is not available, declare it.
if (!F) {
More information about the llvm-commits
mailing list