From: Michael J. Spencer Date: Tue, 22 Jan 2013 22:48:46 +0000 (+0000) Subject: [Support][ErrorOr] Make old gcc happy. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7ad70bf46adf7a444c3318ba165e0cfd37fdd591;p=oota-llvm.git [Support][ErrorOr] Make old gcc happy. Apparently this is how C++98 worked pre-DR. (Thanks Richard). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173203 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/ErrorOr.h b/include/llvm/Support/ErrorOr.h index f74ff2166cb..bc708a2af4d 100644 --- a/include/llvm/Support/ErrorOr.h +++ b/include/llvm/Support/ErrorOr.h @@ -172,7 +172,7 @@ public: >::type storage_type; private: - typedef T &reference; + typedef typename remove_reference::type &reference; typedef typename remove_reference::type *pointer; public: