summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2013-01-22 22:48:46 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2013-01-22 22:48:46 +0000
commit9566c1663c95e874425d261abd0539a0ee20bd3c (patch)
tree3a9509726c0e7f64be08af44352b8998227bd548
parent8b5515fa1b5dd881272a4927555592891482ce09 (diff)
downloadbcm5719-llvm-9566c1663c95e874425d261abd0539a0ee20bd3c.tar.gz
bcm5719-llvm-9566c1663c95e874425d261abd0539a0ee20bd3c.zip
[Support][ErrorOr] Make old gcc happy.
Apparently this is how C++98 worked pre-DR. (Thanks Richard). llvm-svn: 173203
-rw-r--r--llvm/include/llvm/Support/ErrorOr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/ErrorOr.h b/llvm/include/llvm/Support/ErrorOr.h
index f74ff2166cb..bc708a2af4d 100644
--- a/llvm/include/llvm/Support/ErrorOr.h
+++ b/llvm/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:
OpenPOWER on IntegriCloud