llvm.org GIT mirror llvm / cf99054
[YAMLIO] Dirty hack: Force integral conversion to allow strong typedefs to convert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226948 91177308-0d34-0410-b5e6-96231b3b80d8 Michael J. Spencer 5 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
475475 template
476476 void enumFallback(T &Val) {
477477 if ( matchEnumFallback() ) {
478 FBT Res = Val;
478 // FIXME: Force integral conversion to allow strong typedefs to convert.
479 FBT Res = (uint64_t)Val;
479480 yamlize(*this, Res, true);
480 Val = Res;
481 Val = (uint64_t)Res;
481482 }
482483 }
483484