summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/OptTable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Driver/OptTable.cpp')
-rw-r--r--clang/lib/Driver/OptTable.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Driver/OptTable.cpp b/clang/lib/Driver/OptTable.cpp
index 5caaace3ad0..00a949f086b 100644
--- a/clang/lib/Driver/OptTable.cpp
+++ b/clang/lib/Driver/OptTable.cpp
@@ -46,6 +46,7 @@ static Info &getInfo(unsigned id) {
}
OptTable::OptTable() : Options(new Option*[numOptions]) {
+ memset(Options, 0, sizeof(*Options) * numOptions);
}
OptTable::~OptTable() {
@@ -108,11 +109,11 @@ Option *OptTable::constructOption(options::ID id) const {
for (const char *s = info.Flags; *s; ++s) {
switch (*s) {
default: assert(0 && "Invalid option flag.");
- case 'l': Opt->setLinkerInput(true); break;
- case 'i': Opt->setNoOptAsInput(true); break;
case 'J': Opt->setForceJoinedRender(true); break;
case 'S': Opt->setForceSeparateRender(true); break;
- case 'U': Opt->setUnsupported(true); break;
+ case 'i': Opt->setNoOptAsInput(true); break;
+ case 'l': Opt->setLinkerInput(true); break;
+ case 'u': Opt->setUnsupported(true); break;
}
}
OpenPOWER on IntegriCloud