We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f66adaa commit 741a2ccCopy full SHA for 741a2cc
llvm/lib/SYCLLowerIR/ESIMD/LowerESIMD.cpp
@@ -892,7 +892,7 @@ static void translateUnPackMask(CallInst &CI) {
892
// This function sets VCNamedBarrierCount attribute to set
893
// the number of named barriers required by a kernel
894
static void translateNbarrierInit(CallInst &CI) {
895
- auto F = CI.getParent()->getParent();
+ auto *F = CI.getFunction();
896
897
auto *ArgV = CI.getArgOperand(0);
898
assert(isa<ConstantInt>(ArgV) &&
0 commit comments