diff options
Diffstat (limited to 'clang/lib/AST/ItaniumMangle.cpp')
-rw-r--r-- | clang/lib/AST/ItaniumMangle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ItaniumMangle.cpp b/clang/lib/AST/ItaniumMangle.cpp index 610400d8322..1a656b5719c 100644 --- a/clang/lib/AST/ItaniumMangle.cpp +++ b/clang/lib/AST/ItaniumMangle.cpp @@ -2702,7 +2702,7 @@ void CXXNameMangler::mangleType(const FunctionProtoType *T) { // Mangle instantiation-dependent exception-specification, if present, // per cxx-abi-dev proposal on 2016-10-11. if (T->hasInstantiationDependentExceptionSpec()) { - if (T->getExceptionSpecType() == EST_ComputedNoexcept) { + if (isComputedNoexcept(T->getExceptionSpecType())) { Out << "DO"; mangleExpression(T->getNoexceptExpr()); Out << "E"; @@ -2713,7 +2713,7 @@ void CXXNameMangler::mangleType(const FunctionProtoType *T) { mangleType(ExceptTy); Out << "E"; } - } else if (T->isNothrow(getASTContext())) { + } else if (T->isNothrow()) { Out << "Do"; } |