commit | 678d0cb14631b97bfb9c881ec59d0adb4dc6d191 | [log] [tgz] |
---|---|---|
author | Douglas Katzman <dougk@google.com> | Tue Jun 16 18:01:24 2015 +0000 |
committer | Douglas Katzman <dougk@google.com> | Tue Jun 16 18:01:24 2015 +0000 |
tree | 61dba10f0f7c864103df238c9c7c633fc4232e61 | |
parent | 40baa0aad4feed367415918146a99dd0a0c271d8 [diff] [blame] |
If/else looks nicer when both branches have (or don't have) braces. NFC llvm-svn: 239834
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 2ead48b..b1eba72 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp
@@ -1569,8 +1569,9 @@ 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; }