mirror of https://github.com/microsoft/clang.git
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
This commit is contained in:
parent
44d0f7062d
commit
47f0b41171
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
// RUN: %clang -std=c++11 %s -E -o /dev/null 2>&1 | FileCheck %s --allow-empty
|
||||
// CHECK-NOT: error
|
Loading…
Reference in New Issue