Make the Error class constructor protected

This is forcing to use Error::success(), which is in a wide majority
of cases a lot more readable.

Differential Revision: https://reviews.llvm.org/D26481

llvm-svn: 286561
This commit is contained in:
Mehdi Amini
2016-11-11 04:28:40 +00:00
parent e8e98dcb74
commit 41af43092c
75 changed files with 236 additions and 232 deletions

View File

@@ -788,7 +788,7 @@ Error ModuleList::GetSharedModule(const ModuleSpec &module_spec,
*did_create_ptr = true;
shared_module_list.ReplaceEquivalent(module_sp);
return Error();
return Error::success();
}
}
} else {