diff --git a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp index 0a7a1f2ebbf4c..820ca3eec36cf 100644 --- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -846,9 +846,9 @@ void MemorySanitizer::createKernelApi(Module &M, const TargetLibraryInfo &TLI) { } MsanMetadataPtrForLoadN = getOrInsertMsanMetadataFunction( - M, "__msan_metadata_ptr_for_load_n", PtrTy, IRB.getInt64Ty()); + M, "__msan_metadata_ptr_for_load_n", PtrTy, IntptrTy); MsanMetadataPtrForStoreN = getOrInsertMsanMetadataFunction( - M, "__msan_metadata_ptr_for_store_n", PtrTy, IRB.getInt64Ty()); + M, "__msan_metadata_ptr_for_store_n", PtrTy, IntptrTy); // Functions for poisoning and unpoisoning memory. MsanPoisonAllocaFn = M.getOrInsertFunction(