aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2024-08-29 12:00:28 -0700
committerGitHub <noreply@github.com>2024-08-29 12:00:28 -0700
commitff04c5b2e69481fc3b828bfcf32e05ff7a2c4b05 (patch)
treedff44502eeb3eea0829fc5f1db265040a9d09b92 /clang/lib/Sema/SemaStmt.cpp
parente9eaf19eb605c14bed7a0f76d206c13a8eaf842f (diff)
downloadllvm-ff04c5b2e69481fc3b828bfcf32e05ff7a2c4b05.zip
llvm-ff04c5b2e69481fc3b828bfcf32e05ff7a2c4b05.tar.gz
llvm-ff04c5b2e69481fc3b828bfcf32e05ff7a2c4b05.tar.bz2
[NFC][Sema] Move `Sema::AssignmentAction` into its own scoped enum (#106453)
The primary motivation behind this is to allow the enum type to be referred to earlier in the Sema.h file which is needed for #106321. It was requested in #106321 that a scoped enum be used (rather than moving the enum declaration earlier in the Sema class declaration). Unfortunately doing this creates a lot of churn as all use sites of the enum constants had to be changed. Appologies to all downstream forks in advanced. Note the AA_ prefix has been dropped from the enum value names as they are now redundant.
Diffstat (limited to 'clang/lib/Sema/SemaStmt.cpp')
-rw-r--r--clang/lib/Sema/SemaStmt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp
index ba68167..9664287 100644
--- a/clang/lib/Sema/SemaStmt.cpp
+++ b/clang/lib/Sema/SemaStmt.cpp
@@ -3151,7 +3151,8 @@ Sema::ActOnIndirectGotoStmt(SourceLocation GotoLoc, SourceLocation StarLoc,
if (ExprRes.isInvalid())
return StmtError();
E = ExprRes.get();
- if (DiagnoseAssignmentResult(ConvTy, StarLoc, DestTy, ETy, E, AA_Passing))
+ if (DiagnoseAssignmentResult(ConvTy, StarLoc, DestTy, ETy, E,
+ AssignmentAction::Passing))
return StmtError();
}