[PATCH] D98225: [flang] Sort symbols by creation order
    Peter Klausler via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Mar  9 12:48:15 PST 2021
    
    
  
klausler added inline comments.
================
Comment at: flang/include/flang/Semantics/symbol.h:703
   blockType *currBlock_{nullptr};
+  static inline std::size_t symbolCount_ = 0;
 
----------------
tskeith wrote:
> This doesn't need to be static.
It need not be static today, since there's just one static instance of this class; but there would be a subtle bug in the future if this member were not static and somebody needed another Symbol allocator instance for inlining or whatever.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98225/new/
https://reviews.llvm.org/D98225
    
    
More information about the llvm-commits
mailing list