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:
parent
0824e70695
commit
7d1220168c
@ -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
Block a user