[cfe-commits] r72691 - /cfe/trunk/include/clang/AST/Type.h

Anders Carlsson andersca at mac.com
Mon Jun 1 08:02:16 PDT 2009


Author: andersca
Date: Mon Jun  1 10:02:12 2009
New Revision: 72691

URL: http://llvm.org/viewvc/llvm-project?rev=72691&view=rev
Log:
Fix a bug in hasEmptyExceptionSpec. (Thanks Sebastian for noticing).

Modified:
    cfe/trunk/include/clang/AST/Type.h

Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=72691&r1=72690&r2=72691&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Mon Jun  1 10:02:12 2009
@@ -1226,7 +1226,8 @@
     return exception_begin()[i];
   }
   bool hasEmptyExceptionSpec() const { 
-    return hasExceptionSpec() && getNumExceptions() == 0;
+    return hasExceptionSpec() && !hasAnyExceptionSpec() && 
+      getNumExceptions() == 0;
   }
 
   bool isVariadic() const { return getSubClassData(); }





More information about the cfe-commits mailing list