]> granicus.if.org Git - clang/commitdiff
[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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336836 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index f6faf38c95e8a8cb1862d8e00dc46fe37f3fc231..13ef46b54147f3e53a8f16bd1408f9635f47aa9a 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);