Update the comment for 'notrap()'.

This commit is contained in:
Dan Gohman
2017-10-24 10:39:01 -07:00
parent fdf2486c0a
commit bbdce7e3e0

View File

@@ -54,8 +54,9 @@ impl MemFlags {
/// would cause a trap when accessing the effective address, the Cretonne memory operation is /// would cause a trap when accessing the effective address, the Cretonne memory operation is
/// also required to trap. /// also required to trap.
/// ///
/// The `notrap` flag gives a Cretonne operation permission to not trap. This makes it possible /// The `notrap` flag tells Cretonne that the memory is *accessible*, which means that
/// to delete an unused load or a dead store instruction. /// accesses will not trap. This makes it possible to delete an unused load or a dead store
/// instruction.
pub fn notrap(self) -> bool { pub fn notrap(self) -> bool {
self.read(FlagBit::Notrap) self.read(FlagBit::Notrap)
} }