[all-commits] [llvm/llvm-project] 942c21: Simplify ArchSpec::IsFullySpecifiedTriple() (NFC)

adrian-prantl via All-commits all-commits at lists.llvm.org
Fri Apr 1 14:16:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 942c21ed23dcba11a156cbaad4a74348dc6fdcff
      https://github.com/llvm/llvm-project/commit/942c21ed23dcba11a156cbaad4a74348dc6fdcff
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2022-04-01 (Fri, 01 Apr 2022)

  Changed paths:
    M lldb/source/Utility/ArchSpec.cpp

  Log Message:
  -----------
  Simplify ArchSpec::IsFullySpecifiedTriple() (NFC)

I found this function somewhat hard to read and removed a few entirely
redundant checks and converted it to early exits.

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




More information about the All-commits mailing list