PPCSubtarget.h: Add explicit braces.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 29 Oct 2012 15:51:42 +0000 (15:51 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 29 Oct 2012 15:51:42 +0000 (15:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166932 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCSubtarget.h

index 9e9b82f6911b3e7132abfef0b61904eed622432c..b9e22f43c39e56e1d63bca0ac60d430eed9c206e 100644 (file)
@@ -113,11 +113,12 @@ public:
   const char *getDataLayoutString() const {
     // Note, the alignment values for f64 and i64 on ppc64 in Darwin
     // documentation are wrong; these are correct (i.e. "what gcc does").
-    if (isPPC64() && isSVR4ABI())
+    if (isPPC64() && isSVR4ABI()) {
       if (TargetTriple.getOS() == llvm::Triple::FreeBSD)
         return "E-p:64:64-f64:64:64-i64:64:64-f128:64:64-v128:128:128-n32:64";
       else
         return "E-p:64:64-f64:64:64-i64:64:64-f128:128:128-v128:128:128-n32:64";
+    }
 
     return isPPC64() ? "E-p:64:64-f64:64:64-i64:64:64-f128:64:128-n32:64"
                      : "E-p:32:32-f64:64:64-i64:64:64-f128:64:128-n32";