summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/AliasSetTracker.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-10-29 19:52:04 +0000
committerDan Gohman <gohman@apple.com>2007-10-29 19:52:04 +0000
commit9962054775455c43402bf176da4a28c68197feef (patch)
tree7b16737e55d3e91e0f6501daddb6bed003ebe129 /include/llvm/Analysis/AliasSetTracker.h
parent9330c3af45453d0a3dd9caef40910a9a053e4de5 (diff)
downloadllvm-9962054775455c43402bf176da4a28c68197feef.tar.gz
llvm-9962054775455c43402bf176da4a28c68197feef.tar.bz2
llvm-9962054775455c43402bf176da4a28c68197feef.tar.xz
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/AliasSetTracker.h')
-rw-r--r--include/llvm/Analysis/AliasSetTracker.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/AliasSetTracker.h b/include/llvm/Analysis/AliasSetTracker.h
index cd6450fac8..3aafb80af8 100644
--- a/include/llvm/Analysis/AliasSetTracker.h
+++ b/include/llvm/Analysis/AliasSetTracker.h
@@ -164,7 +164,7 @@ public:
class iterator : public forward_iterator<HashNodePair, ptrdiff_t> {
HashNodePair *CurNode;
public:
- iterator(HashNodePair *CN = 0) : CurNode(CN) {}
+ explicit iterator(HashNodePair *CN = 0) : CurNode(CN) {}
bool operator==(const iterator& x) const {
return CurNode == x.CurNode;
@@ -262,7 +262,7 @@ public:
/// AliasSetTracker ctor - Create an empty collection of AliasSets, and use
/// the specified alias analysis object to disambiguate load and store
/// addresses.
- AliasSetTracker(AliasAnalysis &aa) : AA(aa) {}
+ explicit AliasSetTracker(AliasAnalysis &aa) : AA(aa) {}
/// add methods - These methods are used to add different types of
/// instructions to the alias sets. Adding a new instruction can result in