From: Douglas Katzman Date: Tue, 16 Jun 2015 18:01:24 +0000 (+0000) Subject: If/else looks nicer when both branches have (or don't have) braces. NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5574720d6a9b37d02155bb89356a05e59a1c718c;p=clang If/else looks nicer when both branches have (or don't have) braces. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239834 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 2ead48bc82..b1eba72622 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -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; }