[HIP-Clang, test] Fix use of undef FileCheck var
authorThomas Preud'homme <thomasp@graphcore.ai>
Sat, 3 Apr 2021 08:13:11 +0000 (09:13 +0100)
committerThomas Preud'homme <thomasp@graphcore.ai>
Sun, 4 Apr 2021 18:30:27 +0000 (19:30 +0100)
commita41b5100e43810694c09469bc725f560e7ef239f
treec76f431b7afc0e4dd9e1331acb122f5df8eba068
parentc2c68a5940dcd9c9e910dad78b96ecdec8517011
[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
clang/test/CodeGenCUDA/device-stub.cu