[clang][AST] Fix `-Wuninitialized`. NFC
authorMichael Liao <michael.hliao@gmail.com>
Sun, 9 Apr 2023 19:55:38 +0000 (15:55 -0400)
committerMichael Liao <michael.hliao@gmail.com>
Sun, 9 Apr 2023 19:58:10 +0000 (15:58 -0400)
- Adjust the declaration order as non-static member are initialized in
  order of declaration in the class definition.

clang/lib/AST/MicrosoftMangle.cpp

index d8c837b..e0fd8ab 100644 (file)
@@ -327,8 +327,8 @@ class MicrosoftCXXNameMangler {
 
   typedef llvm::DenseMap<const void *, StringRef> TemplateArgStringMap;
   TemplateArgStringMap TemplateArgStrings;
-  llvm::StringSaver TemplateArgStringStorage;
   llvm::BumpPtrAllocator TemplateArgStringStorageAlloc;
+  llvm::StringSaver TemplateArgStringStorage;
 
   typedef std::set<std::pair<int, bool>> PassObjectSizeArgsSet;
   PassObjectSizeArgsSet PassObjectSizeArgs;