LGTM, but I think the loop can be simplified slightly:

================
Comment at: lib/Sema/SemaExpr.cpp:8859
@@ +8858,3 @@
+      break;
+    } // End MemberExpr
+
----------------
Every code path below this point reaches a `break;` -- maybe end the loop here?

================
Comment at: lib/Sema/SemaExpr.cpp:8874
@@ +8873,3 @@
+            << FD->getReturnTypeSourceRange();
+        return;
+      }
----------------
The function will return anyway, because `DiagnosticEmitted` is now `true`. 
Remove this `return` for consistency with the other cases?

================
Comment at: lib/Sema/SemaExpr.cpp:8876
@@ +8875,3 @@
+      }
+      E = CE->getCallee()->IgnoreImpCasts();
+      break;
----------------
This looks like a dead store. Remove?

http://reviews.llvm.org/D4479

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/



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

Reply via email to