commit | 377e12cf75b33e41a8b59d2d620f6653dec16528 | [log] [tgz] |
---|---|---|
author | David Greene <greened@obbligato.org> | Fri Jul 29 19:07:09 2011 +0000 |
committer | David Greene <greened@obbligato.org> | Fri Jul 29 19:07:09 2011 +0000 |
tree | 229240635f7c56982b092cb1eb7daa7a0aec9d07 | |
parent | e32ebf220ae6c0d23d049788b6c2abf47f09af0c [diff] [blame] |
[AVX] Unique UnsetInit Keep only one UnsetInit around. llvm-svn: 136487
diff --git a/llvm/utils/TableGen/Record.cpp b/llvm/utils/TableGen/Record.cpp index 17fe2fa..0f50df6 100644 --- a/llvm/utils/TableGen/Record.cpp +++ b/llvm/utils/TableGen/Record.cpp
@@ -443,7 +443,8 @@ 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) {