aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/OptTable.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-12 18:42:02 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-12 18:42:02 +0000
commit9aecfabe3f2821c58421df1ef7dfff7b54f11b74 (patch)
tree9dd15609f163e701b29986afd5061ffd77dcecc0 /lib/Driver/OptTable.cpp
parent082cb8d7bd9bdb3fe58e8e1a2897c79c4ebcc3a7 (diff)
Driver: Value initialization is nicer than memset.
- Who wouldn't want correctness to hang critically on two easily ignored characters? Thanks Doug! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66819 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/OptTable.cpp')
-rw-r--r--lib/Driver/OptTable.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Driver/OptTable.cpp b/lib/Driver/OptTable.cpp
index d0124057c5..54e5ee1b6a 100644
--- a/lib/Driver/OptTable.cpp
+++ b/lib/Driver/OptTable.cpp
@@ -44,8 +44,7 @@ static Info &getInfo(unsigned id) {
return OptionInfos[id - 1];
}
-OptTable::OptTable() : Options(new Option*[numOptions]) {
- memset(Options, 0, sizeof(*Options) * numOptions);
+OptTable::OptTable() : Options(new Option*[numOptions]()) {
}
OptTable::~OptTable() {