Skip to content

Commit 8db04fb

Browse files
committed
Clarify non-interaction of msan-poison-undef and
msan-poison-undef-vectors.
1 parent 09e88e6 commit 8db04fb

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,16 +265,21 @@ static cl::opt<bool>
265265
cl::desc("Print name of local stack variable"),
266266
cl::Hidden, cl::init(true));
267267

268-
static cl::opt<bool> ClPoisonUndef("msan-poison-undef",
269-
cl::desc("poison undef temps"), cl::Hidden,
270-
cl::init(true));
268+
static cl::opt<bool>
269+
ClPoisonUndef("msan-poison-undef",
270+
cl::desc("Poison fully undef temporary values. "
271+
"Partially undefined constant vectors "
272+
"are unaffected by this flag (see "
273+
"-msan-poison-undef-vectors)."),
274+
cl::Hidden, cl::init(true));
271275

272276
static cl::opt<bool> ClPoisonUndefVectors(
273277
"msan-poison-undef-vectors",
274278
cl::desc("Precisely poison partially undefined constant vectors. "
275279
"If false (legacy behavior), the entire vector is "
276280
"considered fully initialized, which may lead to false "
277-
"negatives."),
281+
"negatives. Fully undefined constant vectors are "
282+
"unaffected by this flag (see -msan-poison-undef)."),
278283
cl::Hidden, cl::init(true));
279284

280285
static cl::opt<bool>

0 commit comments

Comments
 (0)