diff options
author | Abramo Bagnara <abramo.bagnara@gmail.com> | 2010-12-14 22:11:44 +0000 |
---|---|---|
committer | Abramo Bagnara <abramo.bagnara@gmail.com> | 2010-12-14 22:11:44 +0000 |
commit | 723df245307a530da5433dfb43accf187dc3e243 (patch) | |
tree | 54bc41314c4898d2d1f156fbf627a159eb38e56d /lib/Sema/SemaCodeComplete.cpp | |
parent | 8786da77984e81d48e0e1b2bd339809b1efc19f3 (diff) |
Added missing IgnoreParens().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121795 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCodeComplete.cpp')
-rw-r--r-- | lib/Sema/SemaCodeComplete.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Sema/SemaCodeComplete.cpp b/lib/Sema/SemaCodeComplete.cpp index 2394629be5..76452a4516 100644 --- a/lib/Sema/SemaCodeComplete.cpp +++ b/lib/Sema/SemaCodeComplete.cpp @@ -1918,10 +1918,7 @@ static std::string FormatFunctionParameter(ASTContext &Context, // then we're done. if (BlockPointerTypeLoc *BlockPtr = dyn_cast<BlockPointerTypeLoc>(&TL)) { - TL = BlockPtr->getPointeeLoc(); - // Skip any paren typeloc. - while (ParenTypeLoc *ParenPtr = dyn_cast<ParenTypeLoc>(&TL)) - TL = ParenPtr->getInnerLoc(); + TL = BlockPtr->getPointeeLoc().IgnoreParens(); Block = dyn_cast<FunctionProtoTypeLoc>(&TL); } break; |