fix grammar, thanks Duncan!
authorTorok Edwin <edwintorok@gmail.com>
Thu, 11 Dec 2008 11:44:49 +0000 (11:44 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Thu, 11 Dec 2008 11:44:49 +0000 (11:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60875 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/BasicBlock.h
lib/VMCore/BasicBlock.cpp

index ee5ceb3683a9b2d16852835aaba31e4a0da39d85..780aca5ef6df3176d508aafe5f74142aff57d17a 100644 (file)
@@ -137,8 +137,8 @@ public:
   /// getUniquePredecessor - If this basic block has a unique predecessor block,
   /// return the block, otherwise return a null pointer.
   /// Note that unique predecessor doesn't mean single edge, there can be 
-  /// multiple edges from the unique predecessor to this block (for example in
-  /// case of a switch statement with multiple cases having same destination).
+  /// multiple edges from the unique predecessor to this block (for example 
+  /// a switch statement with multiple cases having the same destination).
   BasicBlock *getUniquePredecessor();
   const BasicBlock *getUniquePredecessor() const {
     return const_cast<BasicBlock*>(this)->getUniquePredecessor();
index ab2cbebb90ccbeec17878e134cc8c8d3afcd4411..a76f659233d4270f4ed29e1db56a292f1fa8c56c 100644 (file)
@@ -172,8 +172,8 @@ BasicBlock *BasicBlock::getSinglePredecessor() {
 /// getUniquePredecessor - If this basic block has a unique predecessor block,
 /// return the block, otherwise return a null pointer.
 /// Note that unique predecessor doesn't mean single edge, there can be 
-/// multiple edges from the unique predecessor to this block (for example in
-/// case of a switch statement with multiple cases having same destination).
+/// multiple edges from the unique predecessor to this block (for example 
+/// a switch statement with multiple cases having the same destination).
 BasicBlock *BasicBlock::getUniquePredecessor() {
   pred_iterator PI = pred_begin(this), E = pred_end(this);
   if (PI == E) return 0; // No preds.
@@ -182,8 +182,8 @@ BasicBlock *BasicBlock::getUniquePredecessor() {
   for (;PI != E; ++PI) {
     if (*PI != PredBB)
       return 0;
-    // same predecessor appears multiple times in predecessor list,
-    // this is ok
+    // The same predecessor appears multiple times in the predecessor list.
+    // This is OK.
   }
   return PredBB;
 }