Bug 1631929 - Have the destructor of CalcNode be never inline. r=dmajor

You tell me which other things need it... Copy-constructor? operator==?
and such?

Differential Revision: https://phabricator.services.mozilla.com/D73385
This commit is contained in:
Emilio Cobos Álvarez 2020-06-30 22:31:22 +00:00
parent 9ac909be70
commit 3f74138cd4

View File

@ -60,6 +60,13 @@ pub enum SortKey {
///
/// FIXME: This would be much more elegant if we used `Self` in the types below,
/// but we can't because of https://github.com/serde-rs/serde/issues/1565.
///
/// FIXME: The following annotations are to workaround an LLVM inlining bug, see
/// bug 1631929.
///
/// cbindgen:destructor-attributes=MOZ_NEVER_INLINE
/// cbindgen:copy-constructor-attributes=MOZ_NEVER_INLINE
/// cbindgen:eq-attributes=MOZ_NEVER_INLINE
#[repr(u8)]
#[derive(
Clone,