aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Support/ErrorOr.h2
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: