[FileCheck] - Fix the false positive when -implicit-check-not is used with an unknown...
authorGeorgii Rymar <grimar@accesssoftek.com>
Mon, 13 Apr 2020 15:10:53 +0000 (18:10 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Thu, 16 Apr 2020 12:00:50 +0000 (15:00 +0300)
commit65a2de7e6c986193a630e691686c527b08f292d5
treec58f9231631e47c2ae74431953429c3580d15537
parentcee80c0489e96c36269388b2aacd4da1c5714a66
[FileCheck] - Fix the false positive when -implicit-check-not is used with an unknown -check-prefix.

Imagine we have the following invocation:

`FileCheck -check-prefix=UNKNOWN-PREFIX -implicit-check-not=something`

When the check prefix does not exist it does not fail.
This patch fixes the issue.

Differential revision: https://reviews.llvm.org/D78024
clang/test/CodeGen/catch-implicit-conversions-basics-negatives.c
llvm/include/llvm/Support/FileCheck.h
llvm/lib/Support/FileCheck.cpp
llvm/test/FileCheck/implicit-check-not.txt
llvm/test/tools/llvm-objcopy/MachO/strip-debug.test