Skip to content

Commit 7bdef55

Browse files
committed
Update per comment
1 parent 12bcc7e commit 7bdef55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2782,7 +2782,7 @@ void ModuleAddressSanitizer::instrumentDeviceGlobal(IRBuilder<> &IRB) {
27822782
SmallVector<GlobalVariable *, 8> GlobalsToRemove;
27832783
SmallVector<Constant *, 8> DeviceGlobalMetadata;
27842784

2785-
Type *IntptrTy = Type::getIntNTy(M.getContext(), DL.getPointerSizeInBits());
2785+
Type *IntptrTy = M.getDataLayout().getIntPtrType(*C, kSpirOffloadGlobalAS);
27862786

27872787
// Device global meta data is described by a structure
27882788
// size_t device_global_size

0 commit comments

Comments
 (0)