diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-10 21:10:44 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-10 21:10:44 +0000 |
commit | 197616adda994d9c3f8fe46b2f5b5b34a1f164ad (patch) | |
tree | b067a0d4069b9aa9da9a761fc1e97581580a0803 | |
parent | ff5ed5e2b48eeef3e17ba48f0820a4b6b7b7e779 (diff) |
Fix coding style
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172107 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | unittests/Support/YAMLIOTest.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/unittests/Support/YAMLIOTest.cpp b/unittests/Support/YAMLIOTest.cpp index 0d6e3a0352..f1ae33f116 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); |