]> granicus.if.org Git - clang/commitdiff
Fix a bug in hasEmptyExceptionSpec. (Thanks Sebastian for noticing).
authorAnders Carlsson <andersca@mac.com>
Mon, 1 Jun 2009 15:02:12 +0000 (15:02 +0000)
committerAnders Carlsson <andersca@mac.com>
Mon, 1 Jun 2009 15:02:12 +0000 (15:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72691 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Type.h

index 2bdea34a5f2da810f72e0ae5c7bca40ca0e8b788..1b012385c9f2bb9581445de367134b1a09a41d1b 100644 (file)
@@ -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(); }