summaryrefslogtreecommitdiffstats
path: root/unittests/Support
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-01-10 21:10:44 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-01-10 21:10:44 +0000
commit197616adda994d9c3f8fe46b2f5b5b34a1f164ad (patch)
treeb067a0d4069b9aa9da9a761fc1e97581580a0803 /unittests/Support
parentff5ed5e2b48eeef3e17ba48f0820a4b6b7b7e779 (diff)
downloadexternal_llvm-197616adda994d9c3f8fe46b2f5b5b34a1f164ad.zip
external_llvm-197616adda994d9c3f8fe46b2f5b5b34a1f164ad.tar.gz
external_llvm-197616adda994d9c3f8fe46b2f5b5b34a1f164ad.tar.bz2
Fix coding style
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172107 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support')
-rw-r--r--unittests/Support/YAMLIOTest.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/unittests/Support/YAMLIOTest.cpp b/unittests/Support/YAMLIOTest.cpp
index 0d6e3a0..f1ae33f 100644
--- a/unittests/Support/YAMLIOTest.cpp
+++ b/unittests/Support/YAMLIOTest.cpp
@@ -782,16 +782,14 @@ namespace yaml {
struct MappingTraits<KindAndFlags> {
static void mapping(IO &io, KindAndFlags& kf) {
io.mapRequired("kind", kf.kind);
- // type of flags field varies depending on kind field
-
+ // Type of "flags" field varies depending on "kind" field.
// Use memcpy here to avoid breaking strict aliasing rules.
- if ( kf.kind == kindA ) {
+ if (kf.kind == kindA) {
AFlags aflags;
memcpy(&aflags, &kf.flags, sizeof(aflags));
io.mapRequired("flags", aflags);
memcpy(&kf.flags, &aflags, sizeof(kf.flags));
- }
- else {
+ } else {
BFlags bflags;
memcpy(&bflags, &kf.flags, sizeof(bflags));
io.mapRequired("flags", bflags);