Skip to content

Commit 78b013c

Browse files
committed
Mark Place::as_ref as inlineable
It actually had no gain on my benchmark, but LLVM did decide to inline it when it now can
1 parent ee5f9d1 commit 78b013c

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_middle/src/mir

1 file changed

+1
-0
lines changed

compiler/rustc_middle/src/mir/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1736,6 +1736,7 @@ impl<'tcx> Place<'tcx> {
17361736
self.as_ref().as_local()
17371737
}
17381738

1739+
#[inline]
17391740
pub fn as_ref(&self) -> PlaceRef<'tcx> {
17401741
PlaceRef { local: self.local, projection: &self.projection }
17411742
}

0 commit comments

Comments
 (0)