diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-06-01 15:02:12 +0000 | 
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-06-01 15:02:12 +0000 | 
| commit | a8decaa7c2b4881e66252dc0eaea98c6dd39e29c (patch) | |
| tree | e9fc9e3f3cd2bc003b7d901184a91f2bedcf1ac3 | |
| parent | e32c02114f557659af0e2adbc0251f2ae479094b (diff) | |
| download | bcm5719-llvm-a8decaa7c2b4881e66252dc0eaea98c6dd39e29c.tar.gz bcm5719-llvm-a8decaa7c2b4881e66252dc0eaea98c6dd39e29c.zip | |
Fix a bug in hasEmptyExceptionSpec. (Thanks Sebastian for noticing).
llvm-svn: 72691
| -rw-r--r-- | clang/include/clang/AST/Type.h | 3 | 
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(); } | 

