summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/include/clang/AST/Type.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h
index 2bdea34a5f2..1b012385c9f 100644
--- a/clang/include/clang/AST/Type.h
+++ b/clang/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(); }
OpenPOWER on IntegriCloud