[cfe-commits] [PATCH] Speed up parsing of global declarations.

Dmitri Gribenko gribozavr at gmail.com
Tue Dec 11 11:52:52 PST 2012



================
Comment at: lib/Basic/DiagnosticIDs.cpp:225-226
@@ -224,1 +224,4 @@
 
+/// \brief Cache lookup of the DiagID -> ClassInfo ID mapping.
+static std::pair<unsigned, bool> DiagnosticClassCache[diag::DIAG_UPPER_LIMIT];
+
----------------
Is it OK w.r.t. thread-safety to introduce a modifiable static variable?


http://llvm-reviews.chandlerc.com/D197



More information about the cfe-commits mailing list