Use the explicit keyword for the SCEV class' constructor.

llvm-svn: 36686
This commit is contained in:
Dan Gohman 2007-05-03 18:45:06 +00:00
parent 403a672a5b
commit 793c6e2d5e

View 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.
///