mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
Add a missing assertion that would have helped out Reid
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28746 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -863,6 +863,8 @@ static ValueMap<char, Type, ConstantAggregateZero> AggZeroConstants;
|
|||||||
static char getValType(ConstantAggregateZero *CPZ) { return 0; }
|
static char getValType(ConstantAggregateZero *CPZ) { return 0; }
|
||||||
|
|
||||||
Constant *ConstantAggregateZero::get(const Type *Ty) {
|
Constant *ConstantAggregateZero::get(const Type *Ty) {
|
||||||
|
assert((isa<StructType>(Ty) || isa<ArrayType>(Ty) || isa<PackedType>(Ty)) &&
|
||||||
|
"Cannot create an aggregate zero of non-aggregate type!");
|
||||||
return AggZeroConstants.getOrCreate(Ty, 0);
|
return AggZeroConstants.getOrCreate(Ty, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user