Skip to content
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
6 changes: 3 additions & 3 deletions llvm/lib/SYCLLowerIR/SYCLConditionalCallOnDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ SYCLConditionalCallOnDevicePass::run(Module &M, ModuleAnalysisManager &) {
// (FAction). FAction should be a literal (i.e. not a pointer). The
// structure of the header file ensures that there is exactly one such
// instruction.
bool CallFound = false;
[[maybe_unused]] bool CallFound = false;
for (Instruction &I : instructions(FCaller)) {
if (auto *CI = dyn_cast<CallInst>(&I);
CI && (Intrinsic::IndependentIntrinsics::not_intrinsic ==
Expand Down Expand Up @@ -121,8 +121,8 @@ SYCLConditionalCallOnDevicePass::run(Module &M, ModuleAnalysisManager &) {
Args.push_back(Call->getArgOperand(I));

// Create the new call instruction
auto *NewCall =
CallInst::Create(NewFCaller, Args, /* NameStr = */ "", Call);
auto *NewCall = CallInst::Create(NewFCaller, Args, /* NameStr = */ "",
Call->getIterator());
NewCall->setCallingConv(Call->getCallingConv());
NewCall->setDebugLoc(Call->getDebugLoc());

Expand Down
Loading