[PATCH] D12144: Fix 4 typos in lib/Analysis/

Kai Zhao via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 19 05:16:04 PDT 2015


loverszhaokai created this revision.
loverszhaokai added reviewers: delesley, krememek.
loverszhaokai added a subscriber: cfe-commits.

Fix 4 typos:

  "Intialize"       -> "Initialize"
  "accessable" -> "accessible"
  "modeled"     ->  "modelled"

http://reviews.llvm.org/D12144

Files:
  lib/Analysis/ThreadSafetyCommon.cpp
  lib/Analysis/ThreadSafetyTIL.cpp
  lib/Analysis/UninitializedValues.cpp

Index: lib/Analysis/UninitializedValues.cpp
===================================================================
--- lib/Analysis/UninitializedValues.cpp
+++ lib/Analysis/UninitializedValues.cpp
@@ -788,7 +788,7 @@
 
 void TransferFunctions::VisitObjCMessageExpr(ObjCMessageExpr *ME) {
   // If the Objective-C message expression is an implicit no-return that
-  // is not modeled in the CFG, set the tracked dataflow values to Unknown.
+  // is not modelled in the CFG, set the tracked dataflow values to Unknown.
   if (objCNoRet.isImplicitNoReturn(ME)) {
     vals.setAllScratchValues(Unknown);
   }
Index: lib/Analysis/ThreadSafetyTIL.cpp
===================================================================
--- lib/Analysis/ThreadSafetyTIL.cpp
+++ lib/Analysis/ThreadSafetyTIL.cpp
@@ -186,8 +186,8 @@
 //
 // This sort assumes that (1) dominators have been computed, (2) there are no
 // critical edges, and (3) the entry block is reachable from the exit block
-// and no blocks are accessable via traversal of back-edges from the exit that
-// weren't accessable via forward edges from the entry.
+// and no blocks are accessible via traversal of back-edges from the exit that
+// weren't accessible via forward edges from the entry.
 int BasicBlock::topologicalFinalSort(SimpleArray<BasicBlock*>& Blocks, int ID) {
   // Visited is assumed to have been set by the topologicalSort.  This pass
   // assumes !Visited means that we've visited this node before.
Index: lib/Analysis/ThreadSafetyCommon.cpp
===================================================================
--- lib/Analysis/ThreadSafetyCommon.cpp
+++ lib/Analysis/ThreadSafetyCommon.cpp
@@ -846,7 +846,7 @@
 
 
 void SExprBuilder::enterCFGBlock(const CFGBlock *B) {
-  // Intialize TIL basic block and add it to the CFG.
+  // Initialize TIL basic block and add it to the CFG.
   CurrentBB = lookupBlock(B);
   CurrentBB->reservePredecessors(B->pred_size());
   Scfg->add(CurrentBB);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12144.32534.patch
Type: text/x-patch
Size: 1951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150819/c6085590/attachment.bin>


More information about the cfe-commits mailing list