diff options
-rw-r--r-- | include/llvm/Constants.h | 2 | ||||
-rw-r--r-- | lib/VMCore/Constants.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 0706f61d12..28ebe556cd 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -295,7 +295,7 @@ protected: public: /// get() - static factory method for creating a null aggregate. It is /// illegal to call this method with a non-aggregate type. - static Constant *get(const Type *Ty); + static ConstantAggregateZero *get(const Type *Ty); /// isNullValue - Return true if this is the value that would be returned by /// getNullValue. diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 55b87009cb..5fc08dc900 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -1268,7 +1268,7 @@ static ManagedStatic<ValueMap<char, Type, static char getValType(ConstantAggregateZero *CPZ) { return 0; } -Constant *ConstantAggregateZero::get(const Type *Ty) { +ConstantAggregateZero *ConstantAggregateZero::get(const Type *Ty) { assert((isa<StructType>(Ty) || isa<ArrayType>(Ty) || isa<VectorType>(Ty)) && "Cannot create an aggregate zero of non-aggregate type!"); return AggZeroConstants->getOrCreate(Ty, 0); |