From ff5ed5e2b48eeef3e17ba48f0820a4b6b7b7e779 Mon Sep 17 00:00:00 2001 From: Jakub Staszak Date: Thu, 10 Jan 2013 21:02:05 +0000 Subject: [PATCH] Unbreak tests after regression from r172081. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172105 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Support/YAMLIOTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unittests/Support/YAMLIOTest.cpp b/unittests/Support/YAMLIOTest.cpp index a39fbebf295..0d6e3a03528 100644 --- a/unittests/Support/YAMLIOTest.cpp +++ b/unittests/Support/YAMLIOTest.cpp @@ -789,11 +789,13 @@ namespace yaml { AFlags aflags; memcpy(&aflags, &kf.flags, sizeof(aflags)); io.mapRequired("flags", aflags); + memcpy(&kf.flags, &aflags, sizeof(kf.flags)); } else { BFlags bflags; memcpy(&bflags, &kf.flags, sizeof(bflags)); io.mapRequired("flags", bflags); + memcpy(&kf.flags, &bflags, sizeof(kf.flags)); } } };