aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGException.cpp
diff options
context:
space:
mode:
authorVlad Serebrennikov <serebrennikov.vladislav@gmail.com>2023-11-06 12:00:40 +0300
committerVlad Serebrennikov <serebrennikov.vladislav@gmail.com>2023-11-06 12:01:09 +0300
commitdda8e3de35ead65498094e75adf6f6efd2641323 (patch)
tree5de4c65eedc7239d1d328566e78bbef4b6e70b04 /clang/lib/CodeGen/CGException.cpp
parent3f69b0a9037cfe4184102a980f580ce26e170728 (diff)
downloadllvm-dda8e3de35ead65498094e75adf6f6efd2641323.zip
llvm-dda8e3de35ead65498094e75adf6f6efd2641323.tar.gz
llvm-dda8e3de35ead65498094e75adf6f6efd2641323.tar.bz2
[clang][NFC] Refactor `ImplicitParamDecl::ImplicitParamKind`
This patch converts `ImplicitParamDecl::ImplicitParamKind` into a scoped enum at namespace scope, making it eligible for forward declaring. This is useful for `preferred_type` annotations on bit-fields.
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r--clang/lib/CodeGen/CGException.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp
index 4a54b20..bae8bab 100644
--- a/clang/lib/CodeGen/CGException.cpp
+++ b/clang/lib/CodeGen/CGException.cpp
@@ -2028,17 +2028,17 @@ void CodeGenFunction::startOutlinedSEHHelper(CodeGenFunction &ParentCGF,
Args.push_back(ImplicitParamDecl::Create(
getContext(), /*DC=*/nullptr, StartLoc,
&getContext().Idents.get("exception_pointers"),
- getContext().VoidPtrTy, ImplicitParamDecl::Other));
+ getContext().VoidPtrTy, ImplicitParamKind::Other));
} else {
Args.push_back(ImplicitParamDecl::Create(
getContext(), /*DC=*/nullptr, StartLoc,
&getContext().Idents.get("abnormal_termination"),
- getContext().UnsignedCharTy, ImplicitParamDecl::Other));
+ getContext().UnsignedCharTy, ImplicitParamKind::Other));
}
Args.push_back(ImplicitParamDecl::Create(
getContext(), /*DC=*/nullptr, StartLoc,
&getContext().Idents.get("frame_pointer"), getContext().VoidPtrTy,
- ImplicitParamDecl::Other));
+ ImplicitParamKind::Other));
}
QualType RetTy = IsFilter ? getContext().LongTy : getContext().VoidTy;