From: Kevin Athey Date: Mon, 15 Aug 2022 16:32:54 +0000 (-0700) Subject: [MSAN] clean up style from D131728 X-Git-Tag: upstream/17.0.6~36437 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c22841049eba12a2003435201b8b27c57f9fbc5d;p=platform%2Fupstream%2Fllvm.git [MSAN] clean up style from D131728 Depends on D131728 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D131903 --- diff --git a/compiler-rt/lib/msan/msan_report.cpp b/compiler-rt/lib/msan/msan_report.cpp index cb6463e..c8fc286 100644 --- a/compiler-rt/lib/msan/msan_report.cpp +++ b/compiler-rt/lib/msan/msan_report.cpp @@ -37,14 +37,14 @@ class Decorator: public __sanitizer::SanitizerCommonDecorator { static void DescribeStackOrigin(const char *so, uptr pc) { Decorator d; Printf("%s", d.Origin()); - if (so == nullptr) { - Printf(" %sUninitialized value was created in the stack frame%s\n", - d.Origin(), d.Default()); - } else { + if (so) { Printf( " %sUninitialized value was created by an allocation of '%s%s%s'" " in the stack frame%s\n", d.Origin(), d.Name(), so, d.Origin(), d.Default()); + } else { + Printf(" %sUninitialized value was created in the stack frame%s\n", + d.Origin(), d.Default()); } if (pc)