Skip to content

Commit 3c60ce4

Browse files
committed
wip
1 parent 6e06fed commit 3c60ce4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,8 +1382,6 @@ static void ExtendSpirKernelArgs(Module &M, FunctionAnalysisManager &FAM) {
13821382

13831383
// Handle SpirFixupKernels
13841384
SmallVector<std::pair<Function *, Function *>> SpirFuncs;
1385-
auto *IntptrAS1Ty =
1386-
M.getDataLayout().getIntPtrType(M.getContext(), kSpirOffloadGlobalAS);
13871385

13881386
for (auto *F : SpirFixupKernels) {
13891387
SmallVector<Type *, 16> Types;
@@ -1393,7 +1391,7 @@ static void ExtendSpirKernelArgs(Module &M, FunctionAnalysisManager &FAM) {
13931391
}
13941392

13951393
// New argument: uintptr_t as(1)*, which is allocated in shared USM buffer
1396-
Types.push_back(IntptrAS1Ty->getPointerTo(kSpirOffloadGlobalAS));
1394+
Types.push_back(IntptrTy->getPointerTo(kSpirOffloadGlobalAS));
13971395

13981396
FunctionType *NewFTy = FunctionType::get(F->getReturnType(), Types, false);
13991397

0 commit comments

Comments
 (0)