[OpenMP, test] Fix use of undef DECL FileCheck var
authorThomas Preud'homme <thomasp@graphcore.ai>
Thu, 1 Apr 2021 21:31:06 +0000 (22:31 +0100)
committerThomas Preud'homme <thomasp@graphcore.ai>
Thu, 1 Apr 2021 23:36:56 +0000 (00:36 +0100)
commit58e458935ba6debed11edd9baa98862db0a12651
treec5767e2d1ee03c04544550310e0963786c2bde93
parentd222a07d3023599b8090ed20ca9137b128f5af6c
[OpenMP, test] Fix use of undef DECL FileCheck var

OpenMP test target_data_use_device_ptr_if_codegen contains a CHECK-NOT
directive using an undefined DECL FileCheck variable. It seems copied
from target_data_use_device_ptr_codegen where there's a CHECK for a load
that defined the variable. Since there is no corresponding load in this
testcase, the simplest is to simply forbid any store and get rid of the
variable altogether.

Reviewed By: ABataev

Differential Revision: https://reviews.llvm.org/D99771
clang/test/OpenMP/target_data_use_device_ptr_if_codegen.cpp