Ignore implicit things like ConstantExpr.
llvm-svn: 346461
This commit is contained in:
parent
86ef28f1a2
commit
ec54d6121c
|
@ -58,7 +58,8 @@ void NoexceptMoveConstructorCheck::check(
|
|||
// where expr evaluates to false.
|
||||
if (ProtoType->canThrow() == CT_Can) {
|
||||
Expr *E = ProtoType->getNoexceptExpr();
|
||||
if (!isa<CXXBoolLiteralExpr>(ProtoType->getNoexceptExpr())) {
|
||||
E = E->IgnoreImplicit();
|
||||
if (!isa<CXXBoolLiteralExpr>(E)) {
|
||||
diag(E->getExprLoc(),
|
||||
"noexcept specifier on the move %0 evaluates to 'false'")
|
||||
<< MethodType;
|
||||
|
|
Loading…
Reference in New Issue