From: Erich Keane Date: Wed, 11 Jul 2018 19:09:21 +0000 (+0000) Subject: [NFC] Replace usage of QualType.getTypePtr()-> with operator-> X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e14ae935c97fa188520267f118eafa6d022a0a46;p=clang [NFC] Replace usage of QualType.getTypePtr()-> with operator-> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336836 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index f6faf38c95..13ef46b541 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -8253,7 +8253,7 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC, bool &AddToScope) { QualType R = TInfo->getType(); - assert(R.getTypePtr()->isFunctionType()); + assert(R->isFunctionType()); // TODO: consider using NameInfo for diagnostic. DeclarationNameInfo NameInfo = GetNameForDeclarator(D);