Skip to content

Commit 6bbe331

Browse files
authored
[ESIMD][NFC] Avoid deprecated pointer type method in LowerVecArg pass (#8776)
Signed-off-by: Artem Gindinson <[email protected]>
1 parent d01f85c commit 6bbe331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/SYCLLowerIR/ESIMD/LowerESIMDVecArg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Type *ESIMDLowerVecArgPass::getSimdArgPtrTyOrNull(Value *arg) {
115115
return nullptr;
116116
Type *Res = nullptr;
117117
StructType *ST =
118-
dyn_cast_or_null<StructType>(ArgType->getPointerElementType());
118+
dyn_cast_or_null<StructType>(ArgType->getNonOpaquePointerElementType());
119119

120120
Res = esimd::getVectorTyOrNull(ST);
121121
if (!Res)

0 commit comments

Comments
 (0)