Commit 3d4885b9 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

keep_sink_nx

Summary: A function like keep_sink but marked `noexcept`. Useful for shrinking check functions with duplicated cleanups.

Reviewed By: aary

Differential Revision: D28984340

fbshipit-source-id: f1099d43db25492db0e633f8cc8a5d44bcf157bc
parent 12ccdf77
...@@ -69,6 +69,8 @@ static keep keep_instance{keep_anchor}; ...@@ -69,6 +69,8 @@ static keep keep_instance{keep_anchor};
// weak and noinline to prevent the compiler from eliding calls // weak and noinline to prevent the compiler from eliding calls
template <typename... T> template <typename... T>
FOLLY_ATTR_WEAK FOLLY_NOINLINE void keep_sink(T&&...) {} FOLLY_ATTR_WEAK FOLLY_NOINLINE void keep_sink(T&&...) {}
template <typename... T>
FOLLY_ATTR_WEAK FOLLY_NOINLINE void keep_sink_nx(T&&...) noexcept {}
} // namespace detail } // namespace detail
} // namespace folly } // namespace folly
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment