Use the explicit keyword for the SCEV class' constructor.
authorDan Gohman <gohman@apple.com>
Thu, 3 May 2007 18:45:06 +0000 (18:45 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 3 May 2007 18:45:06 +0000 (18:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36686 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/ScalarEvolution.h

index 263af5f0e519ec8ae91a5e9323c0e0281a8ae9ca..26f6f951333709d0c8b17e3c5adaa72ef7471dfb 100644 (file)
@@ -54,7 +54,7 @@ namespace llvm {
   protected:
     virtual ~SCEV();
   public:
-    SCEV(unsigned SCEVTy) : SCEVType(SCEVTy), RefCount(0) {}
+    explicit SCEV(unsigned SCEVTy) : SCEVType(SCEVTy), RefCount(0) {}
 
     /// getNegativeSCEV - Return the SCEV object corresponding to -V.
     ///