[GENERAL] Error messages now no longer make terminal color green

This commit is contained in:
Philippe Tillet
2020-04-03 23:25:29 -04:00
parent 7c09ff80eb
commit e04efc1c85
5 changed files with 6 additions and 7 deletions

View File

@@ -835,11 +835,9 @@ ArithmType* ConditionalOp::Convert() {
void ConditionalOp::TypeChecking() {
auto condScalarType = TryExtractScalarType(this, cond_);
if (!condScalarType) {
Error(cond_->Tok(), "condition must be tile or scalar");
}
auto lhsType = TryExtractScalarType(this, exprTrue_);
auto rhsType = TryExtractScalarType(this, exprFalse_);
if (lhsType->ToArithm() && rhsType->ToArithm()) {