[PATCH] D131728: [MSAN] add flag to suppress storage of stack variable names with -sanitize-memory-track-origins

Kevin Athey via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 15 09:34:03 PDT 2022


kda added inline comments.


================
Comment at: compiler-rt/lib/msan/msan_report.cpp:40-48
+  if (so == nullptr) {
+    Printf("  %sUninitialized value was created in the stack frame%s\n",
+           d.Origin(), d.Default());
+  } else {
+    Printf(
+        "  %sUninitialized value was created by an allocation of '%s%s%s'"
+        " in the stack frame%s\n",
----------------
vitalybuka wrote:
> nits
> 1. we usually use implicit conversion to bool for pointers checking
> 2. positive branch first
followed up with D131903


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131728/new/

https://reviews.llvm.org/D131728



More information about the llvm-commits mailing list