LGTM

================
Comment at: lib/Sema/SemaInit.cpp:1924
@@ -1954,2 +1923,3 @@
+                << FieldName << CurrentObjectType);
           ReplacementField = Corrected.getCorrectionDeclAs<FieldDecl>();
           hadError = true;
----------------
Assign directly to `KnownField` here and remove `ReplacementField`.

================
Comment at: lib/Sema/SemaInit.cpp:1929
@@ -1957,1 +1928,3 @@
+        // Typo correction didn't find anything.
+        if (!ReplacementField) {
           SemaRef.Diag(D->getFieldLoc(), diag::err_field_designator_unknown)
----------------
Maybe `else`?

http://reviews.llvm.org/D4839



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

Reply via email to