aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-06-01 15:02:12 +0000
committerAnders Carlsson <andersca@mac.com>2009-06-01 15:02:12 +0000
commita12823f6c0ec9e0e644a9d0ee153e973f49c63fc (patch)
tree7814997ada9fd3810a59295bac558927b1bff4f5
parent3fbc473e1e76ead199c7333bdbf02dfa1c7dc420 (diff)
Fix a bug in hasEmptyExceptionSpec. (Thanks Sebastian for noticing).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72691 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Type.h3
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(); }