summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/TinyPtrVector.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-03-06 07:14:54 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-03-06 07:14:54 +0000
commit0db235a2b0ed6ae5c3c870012061906054b6dbc4 (patch)
treec727a12dfaf3d26181baa798e0ff3a0de6bad7b4 /include/llvm/ADT/TinyPtrVector.h
parentf0c094b1155e9316e93b28bfbd3153bc99d1ac95 (diff)
downloadllvm-0db235a2b0ed6ae5c3c870012061906054b6dbc4.tar.gz
llvm-0db235a2b0ed6ae5c3c870012061906054b6dbc4.tar.bz2
llvm-0db235a2b0ed6ae5c3c870012061906054b6dbc4.tar.xz
PointerUnion::getAddrOf() does not need to be template since we can only
use the first pointer type for it. Rename it to getAddrOfPtr1(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/TinyPtrVector.h')
-rw-r--r--include/llvm/ADT/TinyPtrVector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/TinyPtrVector.h b/include/llvm/ADT/TinyPtrVector.h
index e27dd4b785..374357d9c6 100644
--- a/include/llvm/ADT/TinyPtrVector.h
+++ b/include/llvm/ADT/TinyPtrVector.h
@@ -69,7 +69,7 @@ public:
return 0;
if (Val.template is<EltTy>())
- return Val.template getAddrOf<EltTy>();
+ return Val.getAddrOfPtr1();
return Val.template get<VecTy *>()->begin();