aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorVlad Serebrennikov <serebrennikov.vladislav@gmail.com>2024-02-11 15:06:15 +0300
committerVlad Serebrennikov <serebrennikov.vladislav@gmail.com>2024-02-11 15:06:15 +0300
commit6884657de8da3024b50d8737219c1f24ab075c4c (patch)
treec6568b055b8d6bc570d030ce9dd5eb283e098204 /clang/lib/Sema/SemaChecking.cpp
parentbcc4c8231fbee46f1b16f8b9db7d9926745db9bb (diff)
downloadllvm-6884657de8da3024b50d8737219c1f24ab075c4c.zip
llvm-6884657de8da3024b50d8737219c1f24ab075c4c.tar.gz
llvm-6884657de8da3024b50d8737219c1f24ab075c4c.tar.bz2
[clang][NFC] Annotate `SemaChecking.cpp` with `preferred_type`
This helps debuggers to display values in bit-fields in a more helpful way.
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index f8b73c7..71e6e72 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -16652,6 +16652,7 @@ class SequenceChecker : public ConstEvaluatedExprVisitor<SequenceChecker> {
struct Value {
explicit Value(unsigned Parent) : Parent(Parent), Merged(false) {}
unsigned Parent : 31;
+ LLVM_PREFERRED_TYPE(bool)
unsigned Merged : 1;
};
SmallVector<Value, 8> Values;