EnumsGen: remove dangling assertion

StringAttr-backed enum attribute cases changed to allow explicit values,
But this assertion was not deleted.

Fixes https://github.com/tensorflow/mlir/issues/39

PiperOrigin-RevId: 256090793
This commit is contained in:
Lei Zhang 2019-07-01 20:56:13 -07:00 committed by jpienaar
parent d71b8bae02
commit 22883036cd
1 changed files with 0 additions and 1 deletions

View File

@ -149,7 +149,6 @@ StringRef tblgen::EnumAttrCase::getSymbol() const {
}
int64_t tblgen::EnumAttrCase::getValue() const {
assert(isStrCase() && "cannot get value for EnumAttrCase");
return def->getValueAsInt("value");
}