Skip to content

Commit

Permalink
[AVX] Unique UnsetInit
Browse files Browse the repository at this point in the history
Keep only one UnsetInit around.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136487 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
greened committed Jul 29, 2011
1 parent dcd35c7 commit ba1ae18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/TableGen/Record.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ba1ae18

Please sign in to comment.