Unbreak tests after regression from r172081.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172105 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakub Staszak 2013-01-10 21:02:05 +00:00
parent 9b1f44b147
commit ff5ed5e2b4

View File

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