Commit 0558fb60 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 2

Support folly::assume under MSVC

Summary: Actually __assume when we assume.

Reviewed By: meyering

Differential Revision: D3336033

fbshipit-source-id: 6c931e9f832dd1d861d03e3ad8e308f612522401
parent b939def1
......@@ -38,6 +38,8 @@ FOLLY_ALWAYS_INLINE void assume(bool cond) {
__builtin_assume(cond);
#elif defined(__GNUC__)
if (!cond) { __builtin_unreachable(); }
#elif defined(_MSC_VER)
__assume(cond);
#else
// Do nothing.
#endif
......
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