From 924a8f3573a64797a7080061a586e3b4de8a41ae Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Fri, 10 Dec 2010 16:29:40 +0000 Subject: Added ParenType type node. llvm-svn: 121488 --- clang/lib/Sema/SemaExceptionSpec.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/Sema/SemaExceptionSpec.cpp') diff --git a/clang/lib/Sema/SemaExceptionSpec.cpp b/clang/lib/Sema/SemaExceptionSpec.cpp index c902e778709..885e52dd76a 100644 --- a/clang/lib/Sema/SemaExceptionSpec.cpp +++ b/clang/lib/Sema/SemaExceptionSpec.cpp @@ -81,6 +81,7 @@ bool Sema::CheckSpecifiedExceptionType(QualType T, const SourceRange &Range) { /// to member to a function with an exception specification. This means that /// it is invalid to add another level of indirection. bool Sema::CheckDistantExceptionSpec(QualType T) { + T = T.IgnoreParens(); if (const PointerType *PT = T->getAs()) T = PT->getPointeeType(); else if (const MemberPointerType *PT = T->getAs()) @@ -88,6 +89,7 @@ bool Sema::CheckDistantExceptionSpec(QualType T) { else return false; + T = T.IgnoreParens(); const FunctionProtoType *FnT = T->getAs(); if (!FnT) return false; -- cgit v1.2.3