[all-commits] [llvm/llvm-project] effdfa: [clang][dataflow] Use `isRecordType()` where appro...

martinboehme via All-commits all-commits at lists.llvm.org
Thu Apr 6 00:26:42 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: effdfa7d5f49b00b4c0d36f7c6835b519b0f46bb
      https://github.com/llvm/llvm-project/commit/effdfa7d5f49b00b4c0d36f7c6835b519b0f46bb
  Author: Martin Braenne <mboehme at google.com>
  Date:   2023-04-06 (Thu, 06 Apr 2023)

  Changed paths:
    M clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp
    M clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp

  Log Message:
  -----------
  [clang][dataflow] Use `isRecordType()` where appropriate.

This is less verbose than checking for class, struct, and union individually,
and I believe it's also more efficient (not that that should be the overriding
concern).

Reviewed By: sammccall, xazax.hun

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




More information about the All-commits mailing list