r239834 - If/else looks nicer when both branches have (or don't have) braces. NFC

Douglas Katzman dougk at google.com
Tue Jun 16 11:01:24 PDT 2015


Author: dougk
Date: Tue Jun 16 13:01:24 2015
New Revision: 239834

URL: http://llvm.org/viewvc/llvm-project?rev=239834&view=rev
Log:
If/else looks nicer when both branches have (or don't have) braces. NFC

Modified:
    cfe/trunk/lib/Driver/Driver.cpp

Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=239834&r1=239833&r2=239834&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Tue Jun 16 13:01:24 2015
@@ -1569,8 +1569,9 @@ void Driver::BuildJobsForAction(Compilat
     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;
   }
 





More information about the cfe-commits mailing list