[all-commits] [llvm/llvm-project] e01869: [clang, test] Fix use of undef FileCheck var

RoboTux via All-commits all-commits at lists.llvm.org
Wed Apr 7 01:44:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e018698bec363637f0da25b68da9ba8c3192d1cb
      https://github.com/llvm/llvm-project/commit/e018698bec363637f0da25b68da9ba8c3192d1cb
  Author: Thomas Preud'homme <thomasp at graphcore.ai>
  Date:   2021-04-07 (Wed, 07 Apr 2021)

  Changed paths:
    M clang/test/CodeGen/libcalls.c

  Log Message:
  -----------
  [clang, test] Fix use of undef FileCheck var

Clang test CodeGen/libcalls.c contains CHECK-NOT directives using a
variable defined in a CHECK directive with a different prefix never
enabled together, therefore causing the variable to be undefined in that
CHECK-NOT.

The intent of the test is to check that some declaration do not have the
same attribute as when compiling the test without -fmath-errno. This
commits instead changes all CHECK-NOT to CHECK directive, checking that
they all use the same attribute. It also adds an extra CHECK for that
prefix to check the expected attributes these functions should have when
compiling with -fmath-errno.

Reviewed By: rjmccall

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




More information about the All-commits mailing list