mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-13 15:37:24 +00:00
Use the existing typedef to avoid forming a reference to a reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198817 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b3ea6d7ce7
commit
217a29303d
@ -178,8 +178,8 @@ public:
|
||||
return HasError ? 0 : unspecified_bool_true;
|
||||
}
|
||||
|
||||
T &get() { return *getStorage(); }
|
||||
const T &get() const { return const_cast<ErrorOr<T> >(this)->get(); }
|
||||
reference get() { return *getStorage(); }
|
||||
const reference get() const { return const_cast<ErrorOr<T> >(this)->get(); }
|
||||
|
||||
error_code getError() const {
|
||||
return HasError ? *getErrorStorage() : error_code::success();
|
||||
|
Loading…
x
Reference in New Issue
Block a user