diff options
author | Dan Gohman <djg@cray.com> | 2007-10-29 19:52:04 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2007-10-29 19:52:04 +0000 |
commit | 751fed71f59d152b3017e2c175bc4285a219a9d0 (patch) | |
tree | 7b16737e55d3e91e0f6501daddb6bed003ebe129 /include | |
parent | 3e749e989f8989fc40935b6e48976199d87e8972 (diff) | |
download | external_llvm-751fed71f59d152b3017e2c175bc4285a219a9d0.zip external_llvm-751fed71f59d152b3017e2c175bc4285a219a9d0.tar.gz external_llvm-751fed71f59d152b3017e2c175bc4285a219a9d0.tar.bz2 |
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/AliasSetTracker.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/AliasSetTracker.h b/include/llvm/Analysis/AliasSetTracker.h index cd6450f..3aafb80 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 |