[FileCheck] Use bool operator to test Expected
authorThomas Preud'homme <thomasp@graphcore.ai>
Wed, 10 Jul 2019 15:31:19 +0000 (15:31 +0000)
committerThomas Preud'homme <thomasp@graphcore.ai>
Wed, 10 Jul 2019 15:31:19 +0000 (15:31 +0000)
commitf64b7f63828c23456fad95fa76040e99092d0729
tree3fff7ec8d4f7c0dd686a31a2447f8cdc7cef09b3
parent18ba9d60771c785c8c5c17346417f3e157723afa
[FileCheck] Use bool operator to test Expected

Use bool() consistently to get boolean value of Error, Optional and
Expected types in EXPECT calls. While static_cast is used in all cases
but one, bool provides more clarity and makes more sense as a new
default.

llvm-svn: 365644
llvm/unittests/Support/FileCheckTest.cpp