Skip to content

Commit f4236ab

Browse files
committed
Tweak example
1 parent c2ee02c commit f4236ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4660,8 +4660,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
46604660
// PMOV truncates; PMOVS/PMOVUS uses signed/unsigned saturation.
46614661
// This handler treats them all as truncation, which leads to some rare
46624662
// false positives in the cases where the truncated bytes could
4663-
// unambiguously saturate the value e.g., if A = 10?????? ????????
4664-
// (big-endian), the unsigned saturated byte conversion is 1111111 i.e.,
4663+
// unambiguously saturate the value e.g., if A = ??????10 ????????
4664+
// (big-endian), the unsigned saturated byte conversion is 11111111 i.e.,
46654665
// fully defined, but the truncated byte is ????????.
46664666
//
46674667
// TODO: use GetMinMaxUnsigned() to handle saturation precisely.

0 commit comments

Comments
 (0)