diff options
author | Vlad Serebrennikov <serebrennikov.vladislav@gmail.com> | 2023-11-06 12:00:40 +0300 |
---|---|---|
committer | Vlad Serebrennikov <serebrennikov.vladislav@gmail.com> | 2023-11-06 12:01:09 +0300 |
commit | dda8e3de35ead65498094e75adf6f6efd2641323 (patch) | |
tree | 5de4c65eedc7239d1d328566e78bbef4b6e70b04 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 3f69b0a9037cfe4184102a980f580ce26e170728 (diff) | |
download | llvm-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/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 3682a2c..6a910ab 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -1338,7 +1338,7 @@ QualType CodeGenFunction::BuildFunctionArgList(GlobalDecl GD, auto *Implicit = ImplicitParamDecl::Create( getContext(), Param->getDeclContext(), Param->getLocation(), - /*Id=*/nullptr, getContext().getSizeType(), ImplicitParamDecl::Other); + /*Id=*/nullptr, getContext().getSizeType(), ImplicitParamKind::Other); SizeArguments[Param] = Implicit; Args.push_back(Implicit); } |