[PATCH] D98357: [flang] Make the symbol count used for collating symbols static

Pete Steinfeld via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 12 11:05:56 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG085d794c5f54: [flang] Make the symbol count used for collating symbols static (authored by PeteSteinfeld).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98357/new/

https://reviews.llvm.org/D98357

Files:
  flang/include/flang/Semantics/symbol.h


Index: flang/include/flang/Semantics/symbol.h
===================================================================
--- flang/include/flang/Semantics/symbol.h
+++ flang/include/flang/Semantics/symbol.h
@@ -700,7 +700,7 @@
   std::list<blockType *> blocks_;
   std::size_t nextIndex_{0};
   blockType *currBlock_{nullptr};
-  std::size_t symbolCount_ = 0;
+  static inline std::size_t symbolCount_ = 0;
 
   Symbol &Get() {
     if (nextIndex_ == 0) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98357.330309.patch
Type: text/x-patch
Size: 449 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210312/ce576d63/attachment-0001.bin>


More information about the llvm-commits mailing list