Skip to content

Commit f625438

Browse files
michalpaszkowskiigcbot
authored andcommitted
Get argument type from ByVal instead of pointer type.
Get argument type from ByVal instead of pointer type.
1 parent 9f7cef6 commit f625438

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IGC/Compiler/CISACodeGen/OpenCLKernelCodeGen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*========================== begin_copyright_notice ============================
22
3-
Copyright (C) 2017-2023 Intel Corporation
3+
Copyright (C) 2017-2025 Intel Corporation
44
55
SPDX-License-Identifier: MIT
66
@@ -596,7 +596,7 @@ namespace IGC
596596
Type* argType = entry->getFunctionType()->getParamType(argIndex);
597597
if (argumentIter->hasByValAttr())
598598
{
599-
argType = argType->getContainedType(0);
599+
argType = argumentIter->getParamByValType();
600600
}
601601

602602
result += utostr(m_DL->getTypeAllocSize(argType));

0 commit comments

Comments
 (0)