summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2011-10-19 13:03:21 +0000
committerDavid Greene <greened@obbligato.org>2011-10-19 13:03:21 +0000
commit004adaf3452a355ada2a54bcb61dc8925a718651 (patch)
tree7fb00b6d1dacb3ab507d3d49ed30fcf0f12ae1c3 /include
parent675f85d0f240930d571f4e557bb92237ee48124e (diff)
downloadllvm-004adaf3452a355ada2a54bcb61dc8925a718651.tar.gz
llvm-004adaf3452a355ada2a54bcb61dc8925a718651.tar.bz2
llvm-004adaf3452a355ada2a54bcb61dc8925a718651.tar.xz
Call Record Initializer
Call the common Record initializer code from constructors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142509 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/TableGen/Record.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/TableGen/Record.h b/include/llvm/TableGen/Record.h
index 87763a737e..f7a48c4dfb 100644
--- a/include/llvm/TableGen/Record.h
+++ b/include/llvm/TableGen/Record.h
@@ -1403,9 +1403,11 @@ public:
explicit Record(const std::string &N, SMLoc loc, RecordKeeper &records) :
ID(LastID++), Name(StringInit::get(N)), Loc(loc), TrackedRecords(records),
TheInit(0) {
+ init();
}
explicit Record(Init *N, SMLoc loc, RecordKeeper &records) :
ID(LastID++), Name(N), Loc(loc), TrackedRecords(records), TheInit(0) {
+ init();
}
~Record() {}