llvm.org GIT mirror llvm / de2d08e
Invert the condition to have a single return. Thanks to David Blaikie for the suggestion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216468 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 5 years ago
1 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
6262 SMDiagnostic Err;
6363 if (Verbose) errs() << "Loading '" << FN << "'\n";
6464 std::unique_ptr Result = parseIRFile(FN, Err, Context);
65 if (Result)
66 return Result;
65 if (!Result)
66 Err.print(argv0, errs());
6767
68 Err.print(argv0, errs());
69 return nullptr;
68 return Result;
7069 }
7170
7271 int main(int argc, char **argv) {