From: Alexey Samsonov Date: Wed, 19 Feb 2014 08:30:55 +0000 (+0000) Subject: Try to revive buildbots after r201620 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=70416f80a7147ccecf1ae980b01c9064811c67a8;p=oota-llvm.git Try to revive buildbots after r201620 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201651 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/ErrorOr.h b/include/llvm/Support/ErrorOr.h index 39fec3b5ae3..1e29b3d3529 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();