erichkeane added inline comments.

================
Comment at: clang/lib/Sema/SemaType.cpp:1929
+      const auto *AT = dyn_cast<AutoType>(T);
+      if (!AT || AT->isGNUAutoType()) {
+        DiagID = diag::err_typecheck_invalid_restrict_not_pointer;
----------------
The RHS here should NEVER be true.  I think the entirety of the change in this 
branch other than the 'if' condition needs to be reverted.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122029/new/

https://reviews.llvm.org/D122029

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to