aaron.ballman added inline comments.

================
Comment at: lib/Sema/SemaExpr.cpp:14249
+
+    if (Sema::TypeHasNoDeref(Inner))
+      DeclRef = E;
----------------
The sugar was stripped off at the pointer level, but not at the pointee level. 
e.g.,
```
typedef int (bobble);
typedef bobble * (frobble);
typedef frobble * yobble;

yobble gobble;
```
I think you can handle this within `TypeHasNoDeref()` and that should fix up 
all the callers.


Repository:
  rC Clang

https://reviews.llvm.org/D49511



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

Reply via email to