================
@@ -10,6 +10,7 @@ void h() {
   SEL* ps = &s;
 
   @selector(dealloc) = s;  // expected-error {{expression is not assignable}}
+  // expected-note@-1 {{add '*' to dereference it}}
----------------
Rajveer100 wrote:

I see a way to handle this:

`E->getType()->isSpecificBuiltinType(clang::BuiltinType::ObjCSel)` 

Unfortunately doesn't work, since from what I understand, we could be checking 
for a compound expression here for `E`.

https://github.com/llvm/llvm-project/pull/94159
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to