aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2011-07-29 19:07:09 +0000
committerDavid Greene <greened@obbligato.org>2011-07-29 19:07:09 +0000
commitba1ae182876762f17201b33c0b87ca8ede156cfc (patch)
tree425a0caf0d11cd98d928b2db860fcc5b6ceccd44 /utils
parentdcd35c797d458d8b1dbc36cf7f1504166d5b2f16 (diff)
downloadexternal_llvm-ba1ae182876762f17201b33c0b87ca8ede156cfc.zip
external_llvm-ba1ae182876762f17201b33c0b87ca8ede156cfc.tar.gz
external_llvm-ba1ae182876762f17201b33c0b87ca8ede156cfc.tar.bz2
[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
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/Record.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/Record.cpp b/utils/TableGen/Record.cpp
index 17fe2fa..0f50df6 100644
--- a/utils/TableGen/Record.cpp
+++ b/utils/TableGen/Record.cpp
@@ -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) {