We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12bcc7e commit 7bdef55Copy full SHA for 7bdef55
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -2782,7 +2782,7 @@ void ModuleAddressSanitizer::instrumentDeviceGlobal(IRBuilder<> &IRB) {
2782
SmallVector<GlobalVariable *, 8> GlobalsToRemove;
2783
SmallVector<Constant *, 8> DeviceGlobalMetadata;
2784
2785
- Type *IntptrTy = Type::getIntNTy(M.getContext(), DL.getPointerSizeInBits());
+ Type *IntptrTy = M.getDataLayout().getIntPtrType(*C, kSpirOffloadGlobalAS);
2786
2787
// Device global meta data is described by a structure
2788
// size_t device_global_size
0 commit comments