Skip to content

Commit c228410

Browse files
committed
[MSAN] clean up style from D131728
Depends on D131728 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D131903
1 parent cd3a234 commit c228410

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler-rt/lib/msan/msan_report.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ class Decorator: public __sanitizer::SanitizerCommonDecorator {
3737
static void DescribeStackOrigin(const char *so, uptr pc) {
3838
Decorator d;
3939
Printf("%s", d.Origin());
40-
if (so == nullptr) {
41-
Printf(" %sUninitialized value was created in the stack frame%s\n",
42-
d.Origin(), d.Default());
43-
} else {
40+
if (so) {
4441
Printf(
4542
" %sUninitialized value was created by an allocation of '%s%s%s'"
4643
" in the stack frame%s\n",
4744
d.Origin(), d.Name(), so, d.Origin(), d.Default());
45+
} else {
46+
Printf(" %sUninitialized value was created in the stack frame%s\n",
47+
d.Origin(), d.Default());
4848
}
4949

5050
if (pc)

0 commit comments

Comments
 (0)