[all-commits] [llvm/llvm-project] b743c1: [FileCheck] Turn errors into assert in valueFromSt...

RoboTux via All-commits all-commits at lists.llvm.org
Mon Aug 7 13:27:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b743c19360a67af4a709bd839e8c80ad17f71a1c
      https://github.com/llvm/llvm-project/commit/b743c19360a67af4a709bd839e8c80ad17f71a1c
  Author: Thomas Preud'homme <thomas.preudhomme at arm.com>
  Date:   2023-08-07 (Mon, 07 Aug 2023)

  Changed paths:
    M llvm/lib/FileCheck/FileCheck.cpp
    M llvm/lib/FileCheck/FileCheckImpl.h
    M llvm/unittests/FileCheck/FileCheckTest.cpp

  Log Message:
  -----------
  [FileCheck] Turn errors into assert in valueFromStringRepr()

getWildcardRegex() guarantees that only valid hex numbers are matched by
FileCheck numeric expressions. This commit therefore only asserts the
lack of parsing failure in valueFromStringRepr().

Depends On D154430

Reviewed By: arichardson

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




More information about the All-commits mailing list