[llvm-commits] [llvm] r101246 - /llvm/trunk/include/llvm/Support/CFG.h

Dan Gohman gohman at apple.com
Wed Apr 14 08:50:02 PDT 2010


Author: djg
Date: Wed Apr 14 10:50:02 2010
New Revision: 101246

URL: http://llvm.org/viewvc/llvm-project?rev=101246&view=rev
Log:
Add explicit keywords.

Modified:
    llvm/trunk/include/llvm/Support/CFG.h

Modified: llvm/trunk/include/llvm/Support/CFG.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CFG.h?rev=101246&r1=101245&r2=101246&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/CFG.h (original)
+++ llvm/trunk/include/llvm/Support/CFG.h Wed Apr 14 10:50:02 2010
@@ -41,7 +41,7 @@
 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 @@
   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





More information about the llvm-commits mailing list