[llvm-commits] [llvm] r60875 - in /llvm/trunk: include/llvm/BasicBlock.h lib/VMCore/BasicBlock.cpp
Torok Edwin
edwintorok at gmail.com
Thu Dec 11 03:45:14 PST 2008
Author: edwin
Date: Thu Dec 11 05:44:49 2008
New Revision: 60875
URL: http://llvm.org/viewvc/llvm-project?rev=60875&view=rev
Log:
fix grammar, thanks Duncan!
Modified:
llvm/trunk/include/llvm/BasicBlock.h
llvm/trunk/lib/VMCore/BasicBlock.cpp
Modified: llvm/trunk/include/llvm/BasicBlock.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/BasicBlock.h?rev=60875&r1=60874&r2=60875&view=diff
==============================================================================
--- llvm/trunk/include/llvm/BasicBlock.h (original)
+++ llvm/trunk/include/llvm/BasicBlock.h Thu Dec 11 05:44:49 2008
@@ -137,8 +137,8 @@
/// 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();
Modified: llvm/trunk/lib/VMCore/BasicBlock.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/BasicBlock.cpp?rev=60875&r1=60874&r2=60875&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/BasicBlock.cpp (original)
+++ llvm/trunk/lib/VMCore/BasicBlock.cpp Thu Dec 11 05:44:49 2008
@@ -172,8 +172,8 @@
/// 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 @@
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;
}
More information about the llvm-commits
mailing list