diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-01-22 22:48:46 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-01-22 22:48:46 +0000 |
commit | 7ad70bf46adf7a444c3318ba165e0cfd37fdd591 (patch) | |
tree | c3628b3532090c1293093adeef7facf248d5b437 /include/llvm/Support/ErrorOr.h | |
parent | e65d46246c3e8fc279a9b6b7aaf985060ba88ab0 (diff) |
[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
Diffstat (limited to 'include/llvm/Support/ErrorOr.h')
-rw-r--r-- | include/llvm/Support/ErrorOr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/ErrorOr.h b/include/llvm/Support/ErrorOr.h index f74ff2166c..bc708a2af4 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<T>::type &reference; typedef typename remove_reference<T>::type *pointer; public: |