[llvm-commits] [llvm] r51610 - /llvm/trunk/include/llvm/Analysis/SparsePropagation.h

Dan Gohman gohman at apple.com
Tue May 27 13:41:18 PDT 2008


Author: djg
Date: Tue May 27 15:41:18 2008
New Revision: 51610

URL: http://llvm.org/viewvc/llvm-project?rev=51610&view=rev
Log:
Fix a word-o and add an explicit keyword.

Modified:
    llvm/trunk/include/llvm/Analysis/SparsePropagation.h

Modified: llvm/trunk/include/llvm/Analysis/SparsePropagation.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/SparsePropagation.h?rev=51610&r1=51609&r2=51610&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Analysis/SparsePropagation.h (original)
+++ llvm/trunk/include/llvm/Analysis/SparsePropagation.h Tue May 27 15:41:18 2008
@@ -32,7 +32,7 @@
   class SparseSolver;
   
 /// AbstractLatticeFunction - This class is implemented by the dataflow instance
-/// to specify what the lattice values are and what how they handle merges etc.
+/// to specify what the lattice values are and how they handle merges etc.
 /// This gives the client the power to compute lattice values from instructions,
 /// constants, etc.  The requirement is that lattice values must all fit into
 /// a void*.  If a void* is not sufficient, the implementation should use this
@@ -119,7 +119,8 @@
   SparseSolver(const SparseSolver&);    // DO NOT IMPLEMENT
   void operator=(const SparseSolver&);  // DO NOT IMPLEMENT
 public:
-  SparseSolver(AbstractLatticeFunction *Lattice) : LatticeFunc(Lattice) {}
+  explicit SparseSolver(AbstractLatticeFunction *Lattice)
+    : LatticeFunc(Lattice) {}
   ~SparseSolver() {
     delete LatticeFunc;
   }





More information about the llvm-commits mailing list