Skip to content

Commit

Permalink
Simplify create method
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbryson committed Jul 18, 2018
1 parent 1621289 commit 80db9a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Core/SQLiteBuildDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,7 @@ if (result != SQLITE_OK) { \
std::unique_ptr<BuildDB> core::createSQLiteBuildDB(StringRef path,
uint32_t clientSchemaVersion,
std::string* error_out) {
auto db = llvm::make_unique<SQLiteBuildDB>(path, clientSchemaVersion);
return std::move(db);
return llvm::make_unique<SQLiteBuildDB>(path, clientSchemaVersion);
}

#undef checkSQLiteResultOKReturnFalse

0 comments on commit 80db9a8

Please sign in to comment.