================
Comment at: lib/Sema/SemaDeclAttr.cpp:1002
@@ +1001,3 @@
+  
+  if (const CXXRecordDecl *RD = ThisType->getAsCXXRecordDecl()) {
+    if (!RD->hasAttr<ConsumableAttr>()) {
----------------
Most of the check is still duplicated.  I was thinking of:

if (!checkThisTypeIsConsumable(S, D))
  return;



http://llvm-reviews.chandlerc.com/D1563
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to