summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/TinyPtrVector.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-07-18 01:43:58 +0000
committerChris Lattner <sabre@nondot.org>2011-07-18 01:43:58 +0000
commit840635741f132a9a10f052cbf3b21e14bc74835a (patch)
tree858d9919e1859dcb1d3a017c56d2fd4a6a90bc12 /include/llvm/ADT/TinyPtrVector.h
parent9d69d4aadd4a58aba5634d5c3d2c2a6d8d284134 (diff)
downloadllvm-840635741f132a9a10f052cbf3b21e14bc74835a.tar.gz
llvm-840635741f132a9a10f052cbf3b21e14bc74835a.tar.bz2
llvm-840635741f132a9a10f052cbf3b21e14bc74835a.tar.xz
fix a warning in TinyPtrVector, adopt it in SSAUpdater, saving some
mallocs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135366 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 e1dc3df561..8fbd6f61e2 100644
--- a/include/llvm/ADT/TinyPtrVector.h
+++ b/include/llvm/ADT/TinyPtrVector.h
@@ -98,7 +98,7 @@ public:
void clear() {
// If we have a single value, convert to empty.
- if (EltTy V = Val.template dyn_cast<EltTy>()) {
+ if (Val.template is<EltTy>()) {
Val = (EltTy)0;
} else if (VecTy *Vec = Val.template dyn_cast<VecTy*>()) {
// If we have a vector form, just clear it.