[OCaml] hexagon can't run MCJIT tests, XFAIL it.
[oota-llvm.git] / lib / Option / OptTable.cpp
index ef9a3e75a155d4f8b60dc1d06be843c9cdaf1c44..dca02c17e5388c5cf25bf0399b565a53475ac135 100644 (file)
@@ -264,6 +264,11 @@ InputArgList *OptTable::ParseArgs(const char *const *ArgBegin,
   MissingArgIndex = MissingArgCount = 0;
   unsigned Index = 0, End = ArgEnd - ArgBegin;
   while (Index < End) {
+    // Ingore nullptrs, they are response file's EOL markers
+    if (Args->getArgString(Index) == nullptr) {
+      ++Index;
+      continue;
+    }
     // Ignore empty arguments (other things may still take them as arguments).
     StringRef Str = Args->getArgString(Index);
     if (Str == "") {