From 5574720d6a9b37d02155bb89356a05e59a1c718c Mon Sep 17 00:00:00 2001 From: Douglas Katzman Date: Tue, 16 Jun 2015 18:01:24 +0000 Subject: [PATCH] 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 --- lib/Driver/Driver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.40.0