Skip to content

Commit a5d7363

Browse files
committed
Add note about mask uninitialized bits
1 parent 6bd7941 commit a5d7363

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4583,6 +4583,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
45834583

45844584
assert(WriteThruNumElements == MaskNumElements);
45854585

4586+
// Some bits of the mask may be unused, though it's unusual to have partly
4587+
// uninitialized bits.
45864588
insertCheckShadowOf(Mask, &I);
45874589

45884590
assert(RoundingMode->getType()->isIntegerTy());

0 commit comments

Comments
 (0)