mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-13 06:06:27 +00:00
Make ConstantAggregateZero::get return a ConstantAggregateZero*,
as suggested in PR3182. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60691 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f923129fc3
commit
149cfc3519
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user