]> granicus.if.org Git - clang/commitdiff
If/else looks nicer when both branches have (or don't have) braces. NFC
authorDouglas Katzman <dougk@google.com>
Tue, 16 Jun 2015 18:01:24 +0000 (18:01 +0000)
committerDouglas Katzman <dougk@google.com>
Tue, 16 Jun 2015 18:01:24 +0000 (18:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239834 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index 2ead48bc821db131a2407a68440cd58c9a82fb9f..b1eba72622dc785039fbe80d4839d6a0b79e116d 100644 (file)
@@ -1569,8 +1569,9 @@ void Driver::BuildJobsForAction(Compilation &C,
     if (Input.getOption().matches(options::OPT_INPUT)) {
       const char *Name = Input.getValue();
       Result = InputInfo(Name, A->getType(), Name);
-    } else
+    } else {
       Result = InputInfo(&Input, A->getType(), "");
+    }
     return;
   }