Twine: disable part of isValid() that causes spurious warnings (#1271)

This commit is contained in:
Peter Johnson
2018-08-16 19:35:40 -07:00
committed by GitHub
parent 1462a5bd46
commit 77124a229e

View File

@@ -213,7 +213,7 @@ namespace wpi {
// The RHS cannot be non-empty if the LHS is empty.
if (getRHSKind() != EmptyKind && getLHSKind() == EmptyKind)
return false;
#if 0 // causes spurious warnings
// A twine child should always be binary.
if (getLHSKind() == TwineKind &&
!LHS.twine->isBinary())
@@ -221,7 +221,7 @@ namespace wpi {
if (getRHSKind() == TwineKind &&
!RHS.twine->isBinary())
return false;
#endif
return true;
}