Skip to content

Commit 741a2cc

Browse files
sndmitrievmlychkov
andauthored
Apply suggestions from code review
Co-authored-by: Mikhail Lychkov <[email protected]>
1 parent f66adaa commit 741a2cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/SYCLLowerIR/ESIMD/LowerESIMD.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ static void translateUnPackMask(CallInst &CI) {
892892
// This function sets VCNamedBarrierCount attribute to set
893893
// the number of named barriers required by a kernel
894894
static void translateNbarrierInit(CallInst &CI) {
895-
auto F = CI.getParent()->getParent();
895+
auto *F = CI.getFunction();
896896

897897
auto *ArgV = CI.getArgOperand(0);
898898
assert(isa<ConstantInt>(ArgV) &&

0 commit comments

Comments
 (0)