From: Michael J. Spencer Date: Fri, 23 Jan 2015 22:24:57 +0000 (+0000) Subject: [YAMLIO] Dirty hack: Force integral conversion to allow strong typedefs to convert. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=cf990541a0235e9561d8b471b1be2942a53d1e2a;p=oota-llvm.git [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 --- diff --git a/include/llvm/Support/YAMLTraits.h b/include/llvm/Support/YAMLTraits.h index 75253f1c83e..6b1fe72d0f6 100644 --- a/include/llvm/Support/YAMLTraits.h +++ b/include/llvm/Support/YAMLTraits.h @@ -476,9 +476,10 @@ public: template 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; } }