Skip to content

Commit a2d863f

Browse files
svenvhvladimirlaz
authored andcommitted
Drop unused CLVer member
Its use was removed in dff07df ("[SPIRV] Fix assertion due to duplicate operands in opencl version metadata. This happens when two SPIR modules are linked together. Remove check for OCL version in OCLTypeToSPIRV. Only check if language is C or C++.", 2015-12-16).
1 parent d35a1ad commit a2d863f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

llvm-spirv/lib/SPIRV/OCLTypeToSPIRV.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ namespace SPIRV {
5858

5959
char OCLTypeToSPIRV::ID = 0;
6060

61-
OCLTypeToSPIRV::OCLTypeToSPIRV()
62-
: ModulePass(ID), M(nullptr), Ctx(nullptr), CLVer(0) {
61+
OCLTypeToSPIRV::OCLTypeToSPIRV() : ModulePass(ID), M(nullptr), Ctx(nullptr) {
6362
initializeOCLTypeToSPIRVPass(*PassRegistry::getPassRegistry());
6463
}
6564

llvm-spirv/lib/SPIRV/OCLTypeToSPIRV.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ class OCLTypeToSPIRV : public ModulePass {
7171
private:
7272
Module *M;
7373
LLVMContext *Ctx;
74-
unsigned CLVer;
7574
std::map<Value *, Type *> AdaptedTy; // Adapted types for values
7675
std::set<Function *> WorkSet; // Functions to be adapted
7776

0 commit comments

Comments
 (0)