From a12823f6c0ec9e0e644a9d0ee153e973f49c63fc Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Mon, 1 Jun 2009 15:02:12 +0000 Subject: [PATCH] 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 --- include/clang/AST/Type.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- 2.40.0