[all-commits] [llvm/llvm-project] c4c35d: [Clang] [Sema] Handle `this` in `__restrict`-quali...
Sirraide via All-commits
all-commits at lists.llvm.org
Thu Feb 29 08:43:13 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c4c35d9522d19a0a511ee2cc011a21661e69f3c0
https://github.com/llvm/llvm-project/commit/c4c35d9522d19a0a511ee2cc011a21661e69f3c0
Author: Sirraide <aeternalmail at gmail.com>
Date: 2024-02-29 (Thu, 29 Feb 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/AST/DeclCXX.cpp
M clang/lib/Sema/SemaExprCXX.cpp
A clang/test/SemaCXX/restrict-this.cpp
Log Message:
-----------
[Clang] [Sema] Handle `this` in `__restrict`-qualified member functions properly (#83187)
When resolving the type of `this` inside a member function, we were
attaching all qualifiers present on the member function to the class
type and then making it a pointer; however, `__restrict`, unlike `const`
and `volatile`, needs to be attached to the pointer type rather than the
pointee type.
This fixes #82941, #42411, and #18121.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list