Skip to content

Commit

Permalink
Try to revive buildbots after r201620
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201651 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Alexey Samsonov committed Feb 19, 2014
1 parent fa0cf99 commit 70416f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/llvm/Support/ErrorOr.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class ErrorOr {

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:
Expand Down Expand Up @@ -175,7 +176,7 @@ class ErrorOr {
}

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();
Expand Down

0 comments on commit 70416f8

Please sign in to comment.