[llvm] r201651 - Try to revive buildbots after r201620
Alexey Samsonov
samsonov at google.com
Wed Feb 19 00:30:55 PST 2014
Author: samsonov
Date: Wed Feb 19 02:30:55 2014
New Revision: 201651
URL: http://llvm.org/viewvc/llvm-project?rev=201651&view=rev
Log:
Try to revive buildbots after r201620
Modified:
llvm/trunk/include/llvm/Support/ErrorOr.h
Modified: llvm/trunk/include/llvm/Support/ErrorOr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ErrorOr.h?rev=201651&r1=201650&r2=201651&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ErrorOr.h (original)
+++ llvm/trunk/include/llvm/Support/ErrorOr.h Wed Feb 19 02:30:55 2014
@@ -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();
More information about the llvm-commits
mailing list