Try to revive buildbots after r201620

llvm-svn: 201651
This commit is contained in:
Alexey Samsonov 2014-02-19 08:30:55 +00:00
parent 2169c6bba4
commit 1715e7a81f

View File

@ -103,6 +103,7 @@ public:
private:
typedef typename remove_reference<T>::type &reference;
typedef const typename remove_reference<T>::type &const_reference;
typedef typename remove_reference<T>::type *pointer;
public:
@ -175,7 +176,7 @@ public:
}
reference get() { return *getStorage(); }
const reference get() const { return const_cast<ErrorOr<T> >(this)->get(); }
const_reference get() const { return const_cast<ErrorOr<T> >(this)->get(); }
error_code getError() const {
return HasError ? *getErrorStorage() : error_code::success();