From 222b30b9d39cce262f9e97559313ea593dc73a8e Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 14 Feb 2017 23:41:38 +0000 Subject: 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 --- clang/lib/Frontend/CompilerInvocation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Frontend/CompilerInvocation.cpp') 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 @@ static bool IsInputCompatibleWithStandard(InputKind IK, 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; } -- cgit v1.1