[all-commits] [llvm/llvm-project] 98c6a3: [NFC][ASTImporter] remove the unnecessary conditio...

Shivam via All-commits all-commits at lists.llvm.org
Mon Jul 4 19:42:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98c6a3c0c2209dd7bdb15fe6c91c507c16990bcf
      https://github.com/llvm/llvm-project/commit/98c6a3c0c2209dd7bdb15fe6c91c507c16990bcf
  Author: phyBrackets <singh.shivamsingh2003 at gmail.com>
  Date:   2022-07-05 (Tue, 05 Jul 2022)

  Changed paths:
    M clang/include/clang/AST/ASTImportError.h
    M clang/lib/AST/ASTImporter.cpp

  Log Message:
  -----------
  [NFC][ASTImporter] remove the unnecessary condition checks in ASTImporter.cpp

I think that these conditions are unnecessary because in VisitClassTemplateDecl we import the definition via the templated CXXRecordDecl and in VisitVarTemplateDecl via the templated VarDecl. These are named ToTemplted and DTemplated respectively.

Reviewed By: martong

Differential Revision: https://reviews.llvm.org/D128608




More information about the All-commits mailing list