]> granicus.if.org Git - clang/commitdiff
Correct a user-visible static analyzer message typo
authorAlp Toker <alp@nuanti.com>
Mon, 2 Dec 2013 03:50:25 +0000 (03:50 +0000)
committerAlp Toker <alp@nuanti.com>
Mon, 2 Dec 2013 03:50:25 +0000 (03:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196062 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/MallocChecker.cpp

index e5e016ca6d0e9d198dce8007f047f03388c537ea..3702977bd8264af9378489b53fb8d4b8b9d7a666 100644 (file)
@@ -48,7 +48,7 @@ class RefState {
               Allocated,
               // Reference to released/freed memory.
               Released,
-              // The responsibility for freeing resources has transfered from
+              // The responsibility for freeing resources has transferred from
               // this reference. A relinquished symbol should not be freed.
               Relinquished,
               // We are no longer guaranteed to have observed all manipulations
@@ -2130,7 +2130,7 @@ MallocChecker::MallocBugVisitor::VisitNode(const ExplodedNode *N,
       StackHint = new StackHintGeneratorForSymbol(Sym,
                                              "Returning; memory was released");
     } else if (isRelinquished(RS, RSPrev, S)) {
-      Msg = "Memory ownership is transfered";
+      Msg = "Memory ownership is transferred";
       StackHint = new StackHintGeneratorForSymbol(Sym, "");
     } else if (isReallocFailedCheck(RS, RSPrev, S)) {
       Mode = ReallocationFailed;