Merge pull request #551 from mmp/constfold
Improvements to constant folding.
This commit is contained in:
@@ -1199,7 +1199,7 @@ lEmitEnumDecls(const std::vector<const EnumType *> &enumTypes, FILE *file) {
|
||||
const Symbol *e = enumTypes[i]->GetEnumerator(j);
|
||||
Assert(e->constValue != NULL);
|
||||
unsigned int enumValue;
|
||||
int count = e->constValue->AsUInt32(&enumValue);
|
||||
int count = e->constValue->GetValues(&enumValue);
|
||||
Assert(count == 1);
|
||||
|
||||
// Always print an initializer to set the value. We could be
|
||||
|
||||
Reference in New Issue
Block a user