Skip to content

Commit e9df350

Browse files
committed
fix sycl-device-global-size
1 parent 79a7d21 commit e9df350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/SYCLLowerIR/AsanKernelMetadata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PreservedAnalyses AsanKernelMetadataPass::run(Module &M,
3838
// Fix attributes
3939
KernelMetadata->addAttribute(
4040
"sycl-device-global-size",
41-
std::to_string(DL.getTypeAllocSize(KernelMetadata->getType())));
41+
std::to_string(DL.getTypeAllocSize(KernelMetadata->getValueType())));
4242

4343
// Fix metadata
4444
unsigned MDKindID = Ctx.getMDKindID(SPIRV_DECOR_MD_KIND);

0 commit comments

Comments
 (0)