[all-commits] [llvm/llvm-project] a41b51: [HIP-Clang, test] Fix use of undef FileCheck var

RoboTux via All-commits all-commits at lists.llvm.org
Sun Apr 4 11:30:34 PDT 2021


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

  Changed paths:
    M clang/test/CodeGenCUDA/device-stub.cu

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

Commit 8129521318accc44c2a009647572f6ebd3fc56dd changed a line defining
PREFIX in clang test CodeGenCUDA/device-stub.cu into a CHECK-NOT
directive. All following lines using PREFIX are therefore using an
undefined variable since the pattern defining PREFIX is not supposed to
occur and CHECK-NOT are checked independently.

This commit replaces all uses of PREFIX by the regex used to define it,
thereby avoiding the problem.

Reviewed By: yaxunl

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




More information about the All-commits mailing list