[AVX] Unique UnsetInit

Keep only one UnsetInit around.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136487 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Greene 2011-07-29 19:07:09 +00:00
parent dcd35c797d
commit ba1ae18287

View File

@ -443,7 +443,8 @@ RecTy *llvm::resolveTypes(RecTy *T1, RecTy *T2) {
void Init::dump() const { return print(errs()); }
const UnsetInit *UnsetInit::get() {
return new UnsetInit;
static const UnsetInit TheInit;
return &TheInit;
}
const BitInit *BitInit::get(bool V) {