[llvm-commits] [llvm] r172105 - /llvm/trunk/unittests/Support/YAMLIOTest.cpp
Jakub Staszak
kubastaszak at gmail.com
Thu Jan 10 13:02:05 PST 2013
Author: kuba
Date: Thu Jan 10 15:02:05 2013
New Revision: 172105
URL: http://llvm.org/viewvc/llvm-project?rev=172105&view=rev
Log:
Unbreak tests after regression from r172081.
Modified:
llvm/trunk/unittests/Support/YAMLIOTest.cpp
Modified: llvm/trunk/unittests/Support/YAMLIOTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/YAMLIOTest.cpp?rev=172105&r1=172104&r2=172105&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/YAMLIOTest.cpp (original)
+++ llvm/trunk/unittests/Support/YAMLIOTest.cpp Thu Jan 10 15:02:05 2013
@@ -789,11 +789,13 @@
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));
}
}
};
More information about the llvm-commits
mailing list