Skip to content

Commit 23a674d

Browse files
[libcxxabi] Update ItaniumDemangle.h from LLVM (#140273)
76ba29b landed changes in ItaniumDemangle.h on the LLVM side that were not propagated over to the libcxxabi side. This patch fixes that.
1 parent e9c9c33 commit 23a674d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libcxxabi/src/demangle/ItaniumDemangle.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "Utility.h"
2222
#include <algorithm>
2323
#include <cctype>
24+
#include <cstdint>
2425
#include <cstdio>
2526
#include <cstdlib>
2627
#include <cstring>
@@ -164,18 +165,18 @@ class NodeArray;
164165
// traversed by the printLeft/Right functions to produce a demangled string.
165166
class Node {
166167
public:
167-
enum Kind : unsigned char {
168+
enum Kind : uint8_t {
168169
#define NODE(NodeKind) K##NodeKind,
169170
#include "ItaniumNodes.def"
170171
};
171172

172173
/// Three-way bool to track a cached value. Unknown is possible if this node
173174
/// has an unexpanded parameter pack below it that may affect this cache.
174-
enum class Cache : unsigned char { Yes, No, Unknown, };
175+
enum class Cache : uint8_t { Yes, No, Unknown, };
175176

176177
/// Operator precedence for expression nodes. Used to determine required
177178
/// parens in expression emission.
178-
enum class Prec {
179+
enum class Prec : uint8_t {
179180
Primary,
180181
Postfix,
181182
Unary,

0 commit comments

Comments
 (0)