diff options
author | Dan Gohman <gohman@apple.com> | 2007-11-19 15:30:20 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-11-19 15:30:20 +0000 |
commit | d32081002e0412658e61936732f0f2ab456e61e9 (patch) | |
tree | 101501c67de7b0d348113fd52eb6cb5e0ae258e2 /llvm/lib/Transforms | |
parent | 36347a26f90d0db69a65230f1dc3497498393ca6 (diff) | |
download | bcm5719-llvm-d32081002e0412658e61936732f0f2ab456e61e9.tar.gz bcm5719-llvm-d32081002e0412658e61936732f0f2ab456e61e9.zip |
Add explicit keywords.
llvm-svn: 44234
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp b/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp index 6933fab3cf4..42c4055ae67 100644 --- a/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp +++ b/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp @@ -57,7 +57,7 @@ namespace { Value *Val; // Relation to what value? unsigned Rel; // SetCC or ICmp relation, or Add if no information public: - Relation(Value *V) : Val(V), Rel(Instruction::Add) {} + explicit Relation(Value *V) : Val(V), Rel(Instruction::Add) {} bool operator<(const Relation &R) const { return Val < R.Val; } Value *getValue() const { return Val; } unsigned getRelation() const { return Rel; } @@ -112,7 +112,7 @@ namespace { // Value *Replacement; public: - ValueInfo(const Type *Ty) + explicit ValueInfo(const Type *Ty) : Bounds(Ty->isInteger() ? cast<IntegerType>(Ty)->getBitWidth() : 32), Replacement(0) {} @@ -146,7 +146,7 @@ namespace { return *I; // Insert and return the new relationship... - return *Relationships.insert(I, V); + return *Relationships.insert(I, Relation(V)); } const Relation *requestRelation(Value *V) const { @@ -176,7 +176,7 @@ namespace { typedef std::map<Value*, ValueInfo> ValueMapTy; ValueMapTy ValueMap; public: - RegionInfo(BasicBlock *bb) : BB(bb) {} + explicit RegionInfo(BasicBlock *bb) : BB(bb) {} // getEntryBlock - Return the block that dominates all of the members of // this region. |