[PATCH] D19271: Change CALL_ONCE_INITIALIZATION implementation to use static initialization
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 19 16:50:34 PDT 2016
kcc added inline comments.
================
Comment at: include/llvm/PassSupport.h:35
@@ +34,3 @@
+#define CALL_ONCE_INITIALIZATION(function) \
+ static bool init_once([&] { \
+ function(Registry); \
----------------
Mmm. I am probably missing something trivial (c++11-ish), but how is this going to work?
For me it looks like you define a static bool function, but never call it.
http://reviews.llvm.org/D19271
More information about the llvm-commits
mailing list