Skip to content

Commit 2f32e7b

Browse files
DavidSpickettjsji
authored andcommitted
Remove unused private member from LLVMParallelAccessIndices (#2747)
``` .../SPIRV-LLVM-Translator/lib/SPIRV/SPIRVWriter.cpp:1697:44: warning: private field 'IndexGroupArrayMap' is not used [-Wunused-private-field] 1697 | LLVMToSPIRVBase::LLVMToSPIRVMetadataMap &IndexGroupArrayMap; | ``` IndexGroupArrayMap is used but only during the constructor to validate and build other things. This change happened in 4a7804bc45ada92b8365c82b99387726382b5d7d where code was moved from a separate method, into the constructor. Original commit: KhronosGroup/SPIRV-LLVM-Translator@9a23d54079204ae
1 parent 65ab635 commit 2f32e7b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm-spirv/lib/SPIRV/SPIRVWriter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ class LLVMParallelAccessIndices {
16701670
public:
16711671
LLVMParallelAccessIndices(
16721672
MDNode *Node, LLVMToSPIRVBase::LLVMToSPIRVMetadataMap &IndexGroupArrayMap)
1673-
: Node(Node), IndexGroupArrayMap(IndexGroupArrayMap) {
1673+
: Node(Node) {
16741674

16751675
assert(isValid() &&
16761676
"LLVMParallelAccessIndices initialized from an invalid MDNode");
@@ -1714,7 +1714,6 @@ class LLVMParallelAccessIndices {
17141714

17151715
private:
17161716
MDNode *Node;
1717-
LLVMToSPIRVBase::LLVMToSPIRVMetadataMap &IndexGroupArrayMap;
17181717
const std::string ExpectedName = "llvm.loop.parallel_access_indices";
17191718
std::vector<SPIRVId> ArrayVariablesVec;
17201719
unsigned SafeLen;

0 commit comments

Comments
 (0)