[PATCH] D10303: Don't use ManagedStatic.
Zachary Turner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 15 11:03:55 PDT 2018
zturner added a comment.
I think originally the use of `ManagedStatic` was to work around that not all compilers supported thread-safe initialization of function local statics. Now that that works on all supported compilers, can you just write:
static _object_error_category Ret;
return &Ret;
?
https://reviews.llvm.org/D10303
More information about the llvm-commits
mailing list