Stop asserting when a meaningless -std= flag is passed for a non-compilation
input kind; go back to silently ignoring the flag.
llvm-svn: 295122
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 3001a2d..2ef9639 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1702,8 +1702,8 @@
return true;
break;
default:
- llvm_unreachable("Cannot decide whether language standard and "
- "input file kind are compatible!");
+ // For other inputs, accept (and ignore) all -std= values.
+ return true;
}
return false;
}