aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/StmtProfile.cpp
diff options
context:
space:
mode:
authorVlad Serebrennikov <serebrennikov.vladislav@gmail.com>2023-11-06 17:34:22 +0400
committerGitHub <noreply@github.com>2023-11-06 17:34:22 +0400
commitace4489397d17abfb20d36de1404cfbe102401a7 (patch)
tree3989953eea024f0fb73d652e6bc11f5d1b2b3fb5 /clang/lib/AST/StmtProfile.cpp
parente96889d36f4528127e649bb90125094c75aa1628 (diff)
downloadllvm-ace4489397d17abfb20d36de1404cfbe102401a7.zip
llvm-ace4489397d17abfb20d36de1404cfbe102401a7.tar.gz
llvm-ace4489397d17abfb20d36de1404cfbe102401a7.tar.bz2
[clang][NFC] Refactor `CXXNewExpr::InitializationStyle` (#71322)
This patch converts `CXXNewExpr::InitializationStyle` into a scoped enum at namespace scope. It also affirms the status quo by adding a new enumerator to represent implicit initializer.
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r--clang/lib/AST/StmtProfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp
index 6510fa3..8128219 100644
--- a/clang/lib/AST/StmtProfile.cpp
+++ b/clang/lib/AST/StmtProfile.cpp
@@ -2096,7 +2096,7 @@ void StmtProfiler::VisitCXXNewExpr(const CXXNewExpr *S) {
ID.AddInteger(S->getNumPlacementArgs());
ID.AddBoolean(S->isGlobalNew());
ID.AddBoolean(S->isParenTypeId());
- ID.AddInteger(S->getInitializationStyle());
+ ID.AddInteger(llvm::to_underlying(S->getInitializationStyle()));
}
void