From bbdce7e3e077245bdfb904204d63e8eec756255a Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 24 Oct 2017 10:39:01 -0700 Subject: [PATCH] Update the comment for 'notrap()'. --- lib/cretonne/src/ir/memflags.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/cretonne/src/ir/memflags.rs b/lib/cretonne/src/ir/memflags.rs index 8d0694e1a0..fd836d2752 100644 --- a/lib/cretonne/src/ir/memflags.rs +++ b/lib/cretonne/src/ir/memflags.rs @@ -54,8 +54,9 @@ impl MemFlags { /// would cause a trap when accessing the effective address, the Cretonne memory operation is /// also required to trap. /// - /// The `notrap` flag gives a Cretonne operation permission to not trap. This makes it possible - /// to delete an unused load or a dead store instruction. + /// The `notrap` flag tells Cretonne that the memory is *accessible*, which means that + /// accesses will not trap. This makes it possible to delete an unused load or a dead store + /// instruction. pub fn notrap(self) -> bool { self.read(FlagBit::Notrap) }