From 8a616ea9a993d71963927481d9fcce7b6eea9aba Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 14 Apr 2010 15:50:02 +0000 Subject: [PATCH] Add explicit keywords. llvm-svn: 101246 --- llvm/include/llvm/Support/CFG.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Support/CFG.h b/llvm/include/llvm/Support/CFG.h index 1aa289178bc4..b72c5bb0ab65 100644 --- a/llvm/include/llvm/Support/CFG.h +++ b/llvm/include/llvm/Support/CFG.h @@ -41,7 +41,7 @@ class PredIterator : public std::iteratoruse_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