Skip to content

Commit 88c64da

Browse files
svenvhAlexeySachkov
authored andcommitted
Fix build warnings
Found*contractedFMulAdd became unused after commit e89518b ("Enable strict rules to set ContractionOFF (#521)", 2020-05-20). Add a missing override to suppress a -Winconsistent-missing-override warning.
1 parent a2e5a89 commit 88c64da

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

llvm-spirv/lib/SPIRV/SPIRVLowerOCLBlocks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class SPIRVLowerOCLBlocks : public ModulePass {
7979
return "Lower OpenCL Blocks For SPIR-V";
8080
}
8181

82-
bool runOnModule(Module &M) {
82+
bool runOnModule(Module &M) override {
8383
bool Changed = false;
8484
for (Function &F : M) {
8585
if (!isBlockInvoke(F))

llvm-spirv/lib/SPIRV/libSPIRV/SPIRVFunction.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,6 @@ class SPIRVFunction : public SPIRVValue, public SPIRVComponentExecutionModes {
167167
std::vector<const SPIRVValue *> Variables;
168168
typedef std::vector<SPIRVBasicBlock *> SPIRVLBasicBlockVector;
169169
SPIRVLBasicBlockVector BBVec;
170-
171-
bool FoundUncontractedFMulAdd = false;
172-
bool FoundContractedFMulAdd = false;
173170
};
174171

175172
typedef SPIRVEntryOpCodeOnly<OpFunctionEnd> SPIRVFunctionEnd;

0 commit comments

Comments
 (0)