mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 14:48:27 +08:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user