[SourceKit] Sanitize -embed-bitcode flag to avoid crashing. rdar://22874139

This commit is contained in:
Xi Ge
2015-12-09 15:04:36 -08:00
parent 5fddd4a704
commit cf11ca48b9
2 changed files with 3 additions and 1 deletions

View File

@@ -364,6 +364,8 @@ static void sanitizeCompilerArgs(ArrayRef<const char *> Args,
continue;
if (Arg == "-Xfrontend")
continue;
if (Arg == "-embed-bitcode")
continue;
NewArgs.push_back(CArg);
}
}