Skip to content

Commit 6e2aaaa

Browse files
hahnjodevajithvs
authored andcommitted
[cling] Fix option parsing, again
This fixes the Cling test Driver/E.C.
1 parent 9c7b3bc commit 6e2aaaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interpreter/cling/lib/Interpreter/InvocationOptions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ void CompilerOptions::Parse(int argc, const char* const argv[],
151151
const OptTable& OptsC1 = getDriverOptTable();
152152
ArrayRef<const char *> ArgStrings(argv+1, argv + argc);
153153

154+
llvm::opt::Visibility VisibilityMask(options::ClangOption);
154155
InputArgList Args(OptsC1.ParseArgs(ArgStrings, MissingArgIndex,
155-
MissingArgCount, 0,
156-
options::CLOption | options::DXCOption));
156+
MissingArgCount, VisibilityMask));
157157

158158
for (const Arg* arg : Args) {
159159
switch (arg->getOption().getID()) {

0 commit comments

Comments
 (0)