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

Limit StaticSingletonManager check functions

Summary: [Folly] Limit `StaticSingletonManager` check functions to `StaticSingletonManager` calls.

Reviewed By: Alfus

Differential Revision: D23544598

fbshipit-source-id: 081d324064025d5fc86bb20b9b685c2591f01642
parent 25878e4b
...@@ -41,12 +41,10 @@ extern "C" FOLLY_KEEP int* check() { ...@@ -41,12 +41,10 @@ extern "C" FOLLY_KEEP int* check() {
} }
extern "C" FOLLY_KEEP void* check_throw() { extern "C" FOLLY_KEEP void* check_throw() {
MayThrow<false> obj;
return &createGlobal<MayThrow<false>, void>(); return &createGlobal<MayThrow<false>, void>();
} }
extern "C" FOLLY_KEEP void* check_nothrow() { extern "C" FOLLY_KEEP void* check_nothrow() {
MayThrow<false> obj;
return &createGlobal<MayThrow<true>, void>(); return &createGlobal<MayThrow<true>, void>();
} }
......
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