Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaomaosu committed Dec 26, 2024
1 parent fe1df2b commit 61bdcc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions libdevice/sanitizer/msan_rtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ DEVICE_EXTERN_C_NOINLINE uptr __msan_get_shadow(uptr addr, uint32_t as) {
} \
}

MSAN_MEMSET(0);
MSAN_MEMSET(1);
MSAN_MEMSET(3);
MSAN_MEMSET(0)
MSAN_MEMSET(1)
MSAN_MEMSET(3)
MSAN_MEMSET(4)

#endif // __SPIR__ || __SPIRV__
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ void MemorySanitizer::initializeCallbacks(Module &M,
const std::string Suffix = "_p" + itostr(FirstArgAS);
PointerType *FirstArgPtrTy = IRB.getPtrTy(FirstArgAS);
MemsetOffloadFn[FirstArgAS] = M.getOrInsertFunction(
"__msan_memset" + Suffix, TLI.getAttrList(C, {1}, true),
"__msan_memset" + Suffix, TLI.getAttrList(C, {1}, /*Signed=*/true),
FirstArgPtrTy, FirstArgPtrTy, IRB.getInt32Ty(), IntptrTy);
}
}
Expand Down

0 comments on commit 61bdcc8

Please sign in to comment.