[llvm] [MSan] Update type for MsanMetadataPtrForLoadN and MsanMetadataPtrForStoreN (PR #135040)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 9 08:32:49 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
Author: None (k-kashapov)
<details>
<summary>Changes</summary>
Changed last parameter type for `MsanMetadataPtrForLoadN` and `MsanMetadataPtrForStoreN` from `i64` to `IntptrTy` to keep it consistent with call in `getShadowOriginPtrKernelNoVec`
Ping @<!-- -->vitalybuka
---
Full diff: https://github.com/llvm/llvm-project/pull/135040.diff
1 Files Affected:
- (modified) llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp (+2-2)
``````````diff
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(
``````````
</details>
https://github.com/llvm/llvm-project/pull/135040
More information about the llvm-commits
mailing list