[PATCH] D25817: [Sema] Improve the error diagnostic for dot destructor calls on pointer objects
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 20 06:47:25 PDT 2016
aaron.ballman accepted this revision.
aaron.ballman added a reviewer: aaron.ballman.
aaron.ballman added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lib/Sema/SemaExprCXX.cpp:6287
+ Context.hasSameUnqualifiedType(DestructedType,
+ ObjectType->getPointeeType())) {
+ Diag(OpLoc, diag::err_typecheck_member_reference_suggestion)
----------------
You can elide the curly braces.
Repository:
rL LLVM
https://reviews.llvm.org/D25817
More information about the cfe-commits
mailing list