From 70416f80a7147ccecf1ae980b01c9064811c67a8 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Wed, 19 Feb 2014 08:30:55 +0000 Subject: Try to revive buildbots after r201620 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201651 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/ErrorOr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/llvm/Support/ErrorOr.h') diff --git a/include/llvm/Support/ErrorOr.h b/include/llvm/Support/ErrorOr.h index 39fec3b5ae..1e29b3d352 100644 --- a/include/llvm/Support/ErrorOr.h +++ b/include/llvm/Support/ErrorOr.h @@ -103,6 +103,7 @@ public: private: typedef typename remove_reference::type &reference; + typedef const typename remove_reference::type &const_reference; typedef typename remove_reference::type *pointer; public: @@ -175,7 +176,7 @@ public: } reference get() { return *getStorage(); } - const reference get() const { return const_cast >(this)->get(); } + const_reference get() const { return const_cast >(this)->get(); } error_code getError() const { return HasError ? *getErrorStorage() : error_code::success(); -- cgit v1.2.3