[NFC] Replace usage of QualType.getTypePtr()-> with operator->
authorErich Keane <erich.keane@intel.com>
Wed, 11 Jul 2018 19:09:21 +0000 (19:09 +0000)
committerErich Keane <erich.keane@intel.com>
Wed, 11 Jul 2018 19:09:21 +0000 (19:09 +0000)
llvm-svn: 336836

clang/lib/Sema/SemaDecl.cpp

index f6faf38..13ef46b 100644 (file)
@@ -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);