projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcd35c7
)
[AVX] Unique UnsetInit
author
David Greene
<greened@obbligato.org>
Fri, 29 Jul 2011 19:07:09 +0000
(19:07 +0000)
committer
David Greene
<greened@obbligato.org>
Fri, 29 Jul 2011 19:07:09 +0000
(19:07 +0000)
Keep only one UnsetInit around.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136487
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/Record.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/Record.cpp
b/utils/TableGen/Record.cpp
index 17fe2fad6e7c6296839a30c1958432807b099889..0f50df69d7d4fc919cc976648e30111f0d30926e 100644
(file)
--- 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) {