Skip to content

Commit f76d9da

Browse files
k-kashapovKamil Kashapov
andauthored
[MSan] Update type for MsanMetadataPtrForLoadN and MsanMetadataPtrForStoreN (#135040)
Changed last parameter type for `MsanMetadataPtrForLoadN` and `MsanMetadataPtrForStoreN` from `i64` to `IntptrTy` to keep it consistent with call in `getShadowOriginPtrKernelNoVec` Co-authored-by: Kamil Kashapov <[email protected]>
1 parent 1aed6ad commit f76d9da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,9 +846,9 @@ void MemorySanitizer::createKernelApi(Module &M, const TargetLibraryInfo &TLI) {
846846
}
847847

848848
MsanMetadataPtrForLoadN = getOrInsertMsanMetadataFunction(
849-
M, "__msan_metadata_ptr_for_load_n", PtrTy, IRB.getInt64Ty());
849+
M, "__msan_metadata_ptr_for_load_n", PtrTy, IntptrTy);
850850
MsanMetadataPtrForStoreN = getOrInsertMsanMetadataFunction(
851-
M, "__msan_metadata_ptr_for_store_n", PtrTy, IRB.getInt64Ty());
851+
M, "__msan_metadata_ptr_for_store_n", PtrTy, IntptrTy);
852852

853853
// Functions for poisoning and unpoisoning memory.
854854
MsanPoisonAllocaFn = M.getOrInsertFunction(

0 commit comments

Comments
 (0)