Skip to content

[ESIMD][NFC] Fix 2 compilation warnings in SLM allocation #7909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/lib/SYCLLowerIR/ESIMD/LowerESIMDSlmReservation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ CallInst *isSlmFreeCall(const CallInst *CI) {
// -1 is returned.
int getSLMUsage(const CallInst *SLMReserveCall) {
assert(isSlmInitCall(SLMReserveCall) || isSlmAllocCall(SLMReserveCall));
StringRef Name = SLMReserveCall->getCalledFunction()->getName();
auto *ArgV = SLMReserveCall->getArgOperand(0);

if (!isa<ConstantInt>(ArgV)) {
Expand Down Expand Up @@ -208,6 +207,7 @@ class ScopedCallGraph {
llvm::errs() << "}\n";
}
#endif
virtual ~Node() {}
};

// A function node of the scoped callgraph.
Expand Down