mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
[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
This commit is contained in:
parent
0ace78e7d4
commit
cf990541a0
@ -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…
x
Reference in New Issue
Block a user