diff options
-rw-r--r-- | include/clang/AST/Type.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 2bdea34a5f..1b012385c9 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -1226,7 +1226,8 @@ public: return exception_begin()[i]; } bool hasEmptyExceptionSpec() const { - return hasExceptionSpec() && getNumExceptions() == 0; + return hasExceptionSpec() && !hasAnyExceptionSpec() && + getNumExceptions() == 0; } bool isVariadic() const { return getSubClassData(); } |