forked from OSchip/llvm-project
[YAMLIO] Dirty hack: Force integral conversion to allow strong typedefs to convert.
llvm-svn: 226948
This commit is contained in:
parent
fbbfd09214
commit
58e419593c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue