[YAMLIO] Dirty hack: Force integral conversion to allow strong typedefs to convert.

llvm-svn: 226948
This commit is contained in:
Michael J. Spencer 2015-01-23 22:24:57 +00:00
parent fbbfd09214
commit 58e419593c
1 changed files with 3 additions and 2 deletions

View File

@ -476,9 +476,10 @@ public:
template <typename FBT, typename T>
void enumFallback(T &Val) {
if ( matchEnumFallback() ) {
FBT Res = Val;
// FIXME: Force integral conversion to allow strong typedefs to convert.
FBT Res = (uint64_t)Val;
yamlize(*this, Res, true);
Val = Res;
Val = (uint64_t)Res;
}
}