This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL, test] Fix use of undef FileCheck var
ClosedPublic

Authored by thopre on Apr 4 2021, 12:38 AM.

Details

Summary

Clang test CodeGenOpenCL/fpmath.cl uses a variable defined in an earlier
CHECK-NOT directive. However, by definition the pattern in that
directive is not supposed to occur so no variable will be defined. This
commit solves the issue by using a regex match with the same regex as in
the definition. It also changes the definition into a regex match since
no variable is going to be defined.

Diff Detail

Event Timeline

thopre created this revision.Apr 4 2021, 12:38 AM
thopre requested review of this revision.Apr 4 2021, 12:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2021, 12:38 AM
yaxunl accepted this revision.Apr 5 2021, 10:46 AM

LGTM. Thanks.

This revision is now accepted and ready to land.Apr 5 2021, 10:46 AM
This revision was automatically updated to reflect the committed changes.