Instead of eagerly creating a diagnostic that will be discarded in the normal case, switch to lazy initialization on error.
AsmParser::parseAffineExpr
distinct[n]<unit>