[llvm] [AMDGPU] Utilities to asan instrument memory instructions. (PR #98863)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 09:38:20 PDT 2024
================
@@ -121,7 +121,8 @@ static Instruction *generateCrashCode(Module &M, IRBuilder<> &IRB,
SmallString<128> AsanErrorCallbackString;
raw_svector_ostream AsanErrorCallbackOS(AsanErrorCallbackString);
AsanErrorCallbackOS << kAsanReportErrorTemplate << TypeStr
- << llvm::itostr(1ULL << AccessSizeIndex) << EndingStr;
+ << llvm::format("%d", 1ULL << AccessSizeIndex)
----------------
arsenm wrote:
Sorry, I meant just a raw << (1ULL << AccessSizeIndex) should work, you don't need a literal ::format call
https://github.com/llvm/llvm-project/pull/98863
More information about the llvm-commits
mailing list