Clarify some methods around instance instantiation via comments and clearer names.

This commit is contained in:
Michael Woerister 2020-01-20 15:54:40 +01:00
parent e0bbe7915e
commit 29951edbdf
3 changed files with 19 additions and 7 deletions

View file

@ -246,7 +246,7 @@ pub fn from_fn_attrs(
}
// FIXME(eddyb) consolidate these two `inline` calls (and avoid overwrites).
if instance.def.is_inline(cx.tcx) {
if instance.def.requires_inline(cx.tcx) {
inline(cx, llfn, attributes::InlineAttr::Hint);
}