1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

[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 0824e70695
commit 7d1220168c

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;
}
}