From 6d8106386c45649231fcc6822838dedb969b9301 Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Tue, 14 Dec 2010 22:11:44 +0000 Subject: Added missing IgnoreParens(). llvm-svn: 121795 --- clang/lib/Sema/SemaExceptionSpec.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'clang/lib/Sema/SemaExceptionSpec.cpp') diff --git a/clang/lib/Sema/SemaExceptionSpec.cpp b/clang/lib/Sema/SemaExceptionSpec.cpp index d08e84dacd2..5d7993b1afb 100644 --- a/clang/lib/Sema/SemaExceptionSpec.cpp +++ b/clang/lib/Sema/SemaExceptionSpec.cpp @@ -81,7 +81,6 @@ 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()) @@ -89,7 +88,6 @@ bool Sema::CheckDistantExceptionSpec(QualType T) { else return false; - T = T.IgnoreParens(); const FunctionProtoType *FnT = T->getAs(); if (!FnT) return false; @@ -198,7 +196,7 @@ bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) { SourceLocation AfterParenLoc; if (TypeSourceInfo *TSInfo = New->getTypeSourceInfo()) { - TypeLoc TL = TSInfo->getTypeLoc(); + TypeLoc TL = TSInfo->getTypeLoc().IgnoreParens(); if (const FunctionTypeLoc *FTLoc = dyn_cast(&TL)) AfterParenLoc = PP.getLocForEndOfToken(FTLoc->getRParenLoc()); } -- cgit v1.2.3