diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-14 15:50:02 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-14 15:50:02 +0000 |
commit | 4788ec49a907a00803bee012acb6b12b019eb44a (patch) | |
tree | 14e93fd9709a404a88889d150a0f1d69e4462924 /include/llvm | |
parent | 6193e5b128489c529176c038c76c11e549c4ee12 (diff) | |
download | external_llvm-4788ec49a907a00803bee012acb6b12b019eb44a.zip external_llvm-4788ec49a907a00803bee012acb6b12b019eb44a.tar.gz external_llvm-4788ec49a907a00803bee012acb6b12b019eb44a.tar.bz2 |
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101246 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Support/CFG.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/CFG.h b/include/llvm/Support/CFG.h index 1aa2891..b72c5bb 100644 --- a/include/llvm/Support/CFG.h +++ b/include/llvm/Support/CFG.h @@ -41,7 +41,7 @@ class PredIterator : public std::iterator<std::forward_iterator_tag, public: typedef typename super::pointer pointer; - inline PredIterator(Ptr *bb) : It(bb->use_begin()) { + explicit inline PredIterator(Ptr *bb) : It(bb->use_begin()) { advancePastNonTerminators(); } inline PredIterator(Ptr *bb, bool) : It(bb->use_end()) {} @@ -101,7 +101,7 @@ public: typedef typename super::pointer pointer; // TODO: This can be random access iterator, only operator[] missing. - inline SuccIterator(Term_ T) : Term(T), idx(0) { // begin iterator + explicit inline SuccIterator(Term_ T) : Term(T), idx(0) {// begin iterator assert(T && "getTerminator returned null!"); } inline SuccIterator(Term_ T, bool) // end iterator |