Commit 17a3ed12 authored by Neel Goyal's avatar Neel Goyal Committed by Facebook GitHub Bot

Add some coro guards for windows and clang

Summary: Guard internal compiler issue in makeCollectAllTryTask similar to collectAllTryRange

Reviewed By: iahs

Differential Revision: D28642361

fbshipit-source-id: a557e2c504b232a47f43c95d1163964652fdd435
parent 8ca4693d
...@@ -59,8 +59,11 @@ BarrierTask makeCollectAllTryTask( ...@@ -59,8 +59,11 @@ BarrierTask makeCollectAllTryTask(
co_withCancellation( co_withCancellation(
cancelToken, static_cast<SemiAwaitable&&>(awaitable)))); cancelToken, static_cast<SemiAwaitable&&>(awaitable))));
} }
// This causes clang internal error on Windows.
#if !(defined(_WIN32) && defined(__clang__))
} catch (const std::exception& ex) { } catch (const std::exception& ex) {
result.emplaceException(std::current_exception(), ex); result.emplaceException(std::current_exception(), ex);
#endif
} catch (...) { } catch (...) {
result.emplaceException(std::current_exception()); result.emplaceException(std::current_exception());
} }
......
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