Skip to content

Commit af4e535

Browse files
[ClangImporter] Remove out-of-date clang argument
"-opaque-pointers" has not been a valid clang cc1 argument for a long time since it is the default. What is even worst is that clang is treating that out of date option as "-o paque-pointers" and return no error. Fortunately, ClangImport doesn't write anything to output file, otherwise it is going directly to this "paque-pointers" file.
1 parent be35394 commit af4e535

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -866,9 +866,6 @@ importer::addCommonInvocationArguments(
866866

867867
invocationArgStrs.push_back("-fansi-escape-codes");
868868

869-
invocationArgStrs.push_back("-Xclang");
870-
invocationArgStrs.push_back("-opaque-pointers");
871-
872869
if (importerOpts.ValidateModulesOnce) {
873870
invocationArgStrs.push_back("-fmodules-validate-once-per-build-session");
874871
invocationArgStrs.push_back("-fbuild-session-file=" + importerOpts.BuildSessionFilePath);

0 commit comments

Comments
 (0)