[PATCH] D113168: [clang-tblgen] Fix non-determinism in generating AttrSubMatchRulesParserStringSwitches.inc
Igor Kudrin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 9 19:10:00 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7352f42cdc3c: [clang-tblgen] Fix non-determinism in generating… (authored by ikudrin).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113168/new/
https://reviews.llvm.org/D113168
Files:
clang/utils/TableGen/ClangAttrEmitter.cpp
Index: clang/utils/TableGen/ClangAttrEmitter.cpp
===================================================================
--- clang/utils/TableGen/ClangAttrEmitter.cpp
+++ clang/utils/TableGen/ClangAttrEmitter.cpp
@@ -16,6 +16,7 @@
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DenseSet.h"
+#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
@@ -2043,7 +2044,7 @@
OS << " return None;\n";
OS << "}\n\n";
- std::map<const Record *, std::vector<AttributeSubjectMatchRule>>
+ llvm::MapVector<const Record *, std::vector<AttributeSubjectMatchRule>>
SubMatchRules;
for (const auto &Rule : Rules) {
if (!Rule.isSubRule())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113168.386042.patch
Type: text/x-patch
Size: 760 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211110/df9d7c15/attachment.bin>
More information about the cfe-commits
mailing list