mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Add the 'explicit' keyword to several constructors that accept one
argument that don't appear intended as implicit-conversion operators. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35280 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -231,7 +231,7 @@ class ConstantAggregateZero : public Constant {
|
||||
friend struct ConstantCreator<ConstantAggregateZero, Type, char>;
|
||||
ConstantAggregateZero(const ConstantAggregateZero &); // DO NOT IMPLEMENT
|
||||
protected:
|
||||
ConstantAggregateZero(const Type *Ty)
|
||||
explicit ConstantAggregateZero(const Type *Ty)
|
||||
: Constant(Ty, ConstantAggregateZeroVal, 0, 0) {}
|
||||
public:
|
||||
/// get() - static factory method for creating a null aggregate. It is
|
||||
@@ -420,7 +420,7 @@ class ConstantPointerNull : public Constant {
|
||||
friend struct ConstantCreator<ConstantPointerNull, PointerType, char>;
|
||||
ConstantPointerNull(const ConstantPointerNull &); // DO NOT IMPLEMENT
|
||||
protected:
|
||||
ConstantPointerNull(const PointerType *T)
|
||||
explicit ConstantPointerNull(const PointerType *T)
|
||||
: Constant(reinterpret_cast<const Type*>(T),
|
||||
Value::ConstantPointerNullVal, 0, 0) {}
|
||||
|
||||
@@ -669,7 +669,7 @@ class UndefValue : public Constant {
|
||||
friend struct ConstantCreator<UndefValue, Type, char>;
|
||||
UndefValue(const UndefValue &); // DO NOT IMPLEMENT
|
||||
protected:
|
||||
UndefValue(const Type *T) : Constant(T, UndefValueVal, 0, 0) {}
|
||||
explicit UndefValue(const Type *T) : Constant(T, UndefValueVal, 0, 0) {}
|
||||
public:
|
||||
/// get() - Static factory methods - Return an 'undef' object of the specified
|
||||
/// type.
|
||||
|
Reference in New Issue
Block a user