summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/SparsePropagation.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-27 20:41:18 +0000
committerDan Gohman <gohman@apple.com>2008-05-27 20:41:18 +0000
commit201694b0c6a08332a2878ca803f5159740f5121e (patch)
tree16e43df1adbfbb73331f4b4df40fb52fbdb57982 /include/llvm/Analysis/SparsePropagation.h
parentb0f65e1348cda5b03c5def307c1dc657c6080233 (diff)
downloadllvm-201694b0c6a08332a2878ca803f5159740f5121e.tar.gz
llvm-201694b0c6a08332a2878ca803f5159740f5121e.tar.bz2
llvm-201694b0c6a08332a2878ca803f5159740f5121e.tar.xz
Fix a word-o and add an explicit keyword.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51610 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/SparsePropagation.h')
-rw-r--r--include/llvm/Analysis/SparsePropagation.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Analysis/SparsePropagation.h b/include/llvm/Analysis/SparsePropagation.h
index c472213872..bc9ae6172b 100644
--- a/include/llvm/Analysis/SparsePropagation.h
+++ b/include/llvm/Analysis/SparsePropagation.h
@@ -32,7 +32,7 @@ namespace llvm {
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 @@ class SparseSolver {
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;
}