diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-02-14 23:41:38 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-02-14 23:41:38 +0000 |
commit | 47f0b411712cd64eacabed27424fa1c2a57a9ccd (patch) | |
tree | d37ed7ab713b99ba400372a150499c5ad2df06cf /lib/Frontend/CompilerInvocation.cpp | |
parent | 44d0f7062d219377f1c93ada5ae676baf40381c1 (diff) | |
download | clang-47f0b411712cd64eacabed27424fa1c2a57a9ccd.tar.gz |
Stop asserting when a meaningless -std= flag is passed for a non-compilation
input kind; go back to silently ignoring the flag.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295122 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 3001a2dda4..2ef96398c0 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/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; } |