Skip to content

Commit 971808a

Browse files
authored
[ESIMD][NFC] Fix 2 compilation warnings in SLM allocation (#7909)
1st warning: 'Name' is unused. 2nd warning: class Node has virtual methods, but not virtual destructor. Signed-off-by: Vyacheslav N Klochkov <vyacheslav.n.klochkov@intel.com>
1 parent c5d6b89 commit 971808a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/SYCLLowerIR/ESIMD/LowerESIMDSlmReservation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ CallInst *isSlmFreeCall(const CallInst *CI) {
135135
// -1 is returned.
136136
int getSLMUsage(const CallInst *SLMReserveCall) {
137137
assert(isSlmInitCall(SLMReserveCall) || isSlmAllocCall(SLMReserveCall));
138-
StringRef Name = SLMReserveCall->getCalledFunction()->getName();
139138
auto *ArgV = SLMReserveCall->getArgOperand(0);
140139

141140
if (!isa<ConstantInt>(ArgV)) {
@@ -208,6 +207,7 @@ class ScopedCallGraph {
208207
llvm::errs() << "}\n";
209208
}
210209
#endif
210+
virtual ~Node() {}
211211
};
212212

213213
// A function node of the scoped callgraph.

0 commit comments

Comments
 (0)