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/CGDecl.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/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 0420f43..e5795d8 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -2518,7 +2518,7 @@ void CodeGenFunction::EmitParmDecl(const VarDecl &D, ParamValue Arg, // Suppressing debug info for ThreadPrivateVar parameters, else it hides // debug info of TLS variables. NoDebugInfo = - (IPD->getParameterKind() == ImplicitParamDecl::ThreadPrivateVar); + (IPD->getParameterKind() == ImplicitParamKind::ThreadPrivateVar); } Address DeclPtr = Address::invalid(); |