]> granicus.if.org Git - clang/commit
[OpenMP] Update CHECK-DAG usage in for_codegen.cpp
authorJoel E. Denny <jdenny.ornl@gmail.com>
Tue, 20 Nov 2018 22:04:45 +0000 (22:04 +0000)
committerJoel E. Denny <jdenny.ornl@gmail.com>
Tue, 20 Nov 2018 22:04:45 +0000 (22:04 +0000)
commit32141ec751dcd24836840bf5da033aaa169c71b1
tree6c0161c3a21aafbc852bfa9f4daf972b44188068
parent710518321bb5cae09e462db3c5eb50f2fc711e57
[OpenMP] Update CHECK-DAG usage in for_codegen.cpp

This patch adjusts a test not to depend on deprecated FileCheck
behavior that permits overlapping matches within a block of CHECK-DAG
directives.  Thus, this patch also removes uses of FileCheck's
-allow-deprecated-dag-overlap command-line option.

Specifically, the FileCheck variables DBG_LOC_START, DBG_LOC_END, and
DBG_LOC_CANCEL were all set to the same value.  As a result, three
TERM_DEBUG-DAG patterns, one for each variable, all matched the same
text under the old overlapping behavior.  Under the new
non-overlapping behavior, that's not permitted.  This patch's solution
is to replace these variables with one variable and replace these
patterns with one pattern.

Reviewed By: ABataev

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347350 91177308-0d34-0410-b5e6-96231b3b80d8
test/OpenMP/for_codegen.cpp