Skip to content

Commit 7b28289

Browse files
committed
[FOLD] remove dead code
1 parent 5c4f2cf commit 7b28289

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

clang/lib/Sema/SemaExceptionSpec.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -675,19 +675,6 @@ static bool CheckEquivalentExceptionSpecImpl(
675675
}
676676
}
677677

678-
#if 0
679-
// C++14 [except.spec]p3:
680-
// Two exception-specifications are compatible if [...] both have the form
681-
// noexcept(constant-expression) and the constant-expressions are equivalent
682-
if (OldEST == EST_DependentNoexcept && NewEST == EST_DependentNoexcept) {
683-
llvm::FoldingSetNodeID OldFSN, NewFSN;
684-
Old->getNoexceptExpr()->Profile(OldFSN, S.Context, true);
685-
New->getNoexceptExpr()->Profile(NewFSN, S.Context, true);
686-
if (OldFSN == NewFSN)
687-
return false;
688-
}
689-
#endif
690-
691678
// Dynamic exception specifications with the same set of adjusted types
692679
// are compatible.
693680
if (OldEST == EST_Dynamic && NewEST == EST_Dynamic) {

0 commit comments

Comments
 (0)