forked from OSchip/llvm-project
parent
5fd4ea36fd
commit
0c2734f8de
|
@ -9508,7 +9508,7 @@ bool ComplexExprEvaluator::VisitBinaryOperator(const BinaryOperator *E) {
|
|||
case BO_Mul:
|
||||
if (Result.isComplexFloat()) {
|
||||
// This is an implementation of complex multiplication according to the
|
||||
// constraints laid out in C11 Annex G. The implemantion uses the
|
||||
// constraints laid out in C11 Annex G. The implemention uses the
|
||||
// following naming scheme:
|
||||
// (a + ib) * (c + id)
|
||||
ComplexValue LHS = Result;
|
||||
|
@ -9589,7 +9589,7 @@ bool ComplexExprEvaluator::VisitBinaryOperator(const BinaryOperator *E) {
|
|||
case BO_Div:
|
||||
if (Result.isComplexFloat()) {
|
||||
// This is an implementation of complex division according to the
|
||||
// constraints laid out in C11 Annex G. The implemantion uses the
|
||||
// constraints laid out in C11 Annex G. The implemention uses the
|
||||
// following naming scheme:
|
||||
// (a + ib) / (c + id)
|
||||
ComplexValue LHS = Result;
|
||||
|
|
|
@ -1595,7 +1595,7 @@ ExprResult Sema::BuildLambdaExpr(SourceLocation StartLoc, SourceLocation EndLoc,
|
|||
ContainsUnexpandedParameterPack);
|
||||
// If the lambda expression's call operator is not explicitly marked constexpr
|
||||
// and we are not in a dependent context, analyze the call operator to infer
|
||||
// its constexpr-ness, supressing diagnostics while doing so.
|
||||
// its constexpr-ness, suppressing diagnostics while doing so.
|
||||
if (getLangOpts().CPlusPlus1z && !CallOperator->isInvalidDecl() &&
|
||||
!CallOperator->isConstexpr() &&
|
||||
!isa<CoroutineBodyStmt>(CallOperator->getBody()) &&
|
||||
|
|
Loading…
Reference in New Issue