diff options
| author | Dan Gohman <gohman@apple.com> | 2008-12-08 07:10:54 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-12-08 07:10:54 +0000 |
| commit | 8214fc12a35d66e4ecca60eba29b73292d21547b (patch) | |
| tree | ec81e2d60ff78ebb6e3f09de415734d9c911c4fd /llvm/lib | |
| parent | 2be8b919b107791cc991bcfe0ac96d03cff3df2f (diff) | |
| download | bcm5719-llvm-8214fc12a35d66e4ecca60eba29b73292d21547b.tar.gz bcm5719-llvm-8214fc12a35d66e4ecca60eba29b73292d21547b.zip | |
Make ConstantAggregateZero::get return a ConstantAggregateZero*,
as suggested in PR3182.
llvm-svn: 60691
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/Constants.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp index 55b87009cba..5fc08dc900e 100644 --- a/llvm/lib/VMCore/Constants.cpp +++ b/llvm/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); |

