[analyzer] Slightly improve the diagnostic message of ObjCSelfInitChecker.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124674 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp b/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp
index 2eceb9c..fb8ddb0 100644
--- a/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp
+++ b/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp
@@ -209,7 +209,7 @@
return;
checkForInvalidSelf(E->getBase(), C,
- "Instance variable used before setting 'self' to the result of "
+ "Instance variable used while 'self' is not set to the result of "
"'[(super or self) init...]'");
}
@@ -221,7 +221,7 @@
return;
checkForInvalidSelf(S->getRetValue(), C,
- "Returning 'self' before setting it to the result of "
+ "Returning 'self' while it is not set it to the result of "
"'[(super or self) init...]'");
}