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 | 222b30b9d39cce262f9e97559313ea593dc73a8e (patch) | |
tree | 0df230d8d8b881fc07a6291e9a21f143562946f1 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 35723f09bb4e04e882f584c13f6b34cd175f5d3a (diff) | |
download | bcm5719-llvm-222b30b9d39cce262f9e97559313ea593dc73a8e.tar.gz bcm5719-llvm-222b30b9d39cce262f9e97559313ea593dc73a8e.zip |
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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 3001a2dda46..2ef96398c0d 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; } |