Unverified Commit c4c35d95 authored by Sirraide's avatar Sirraide Committed by GitHub
Browse files

[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.
parent 3fda50d3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment