Skip to content

Commit fb7c2a7

Browse files
committed
Clarify zero-poison comment
1 parent 23e3b65 commit fb7c2a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3287,7 +3287,9 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
32873287
// - 0001 0??? is fully initialized
32883288
// - 000? ???? is fully uninitialized (*)
32893289
// - ???? ???? is fully uninitialized
3290-
// - 0000 0000 is fully initialized iff !is_zero_poison
3290+
// - 0000 0000 is fully uninitialized if is_zero_poison,
3291+
// fully initialized otherwise
3292+
//
32913293
// (*) TODO: arguably, since the number of zeros is in the range [3, 8], we
32923294
// only need to poison 4 bits.
32933295
//

0 commit comments

Comments
 (0)