summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/SmallVector.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-28 06:44:42 +0000
committerChris Lattner <sabre@nondot.org>2008-04-28 06:44:42 +0000
commitb606dba13ba84721cc297174c2eb1275bc642604 (patch)
tree8250f58b3a152a503b074f21a42004cf24badde8 /include/llvm/ADT/SmallVector.h
parente49e52d85601e8f732da16ca21e3de6cefd20158 (diff)
downloadllvm-b606dba13ba84721cc297174c2eb1275bc642604.tar.gz
llvm-b606dba13ba84721cc297174c2eb1275bc642604.tar.bz2
llvm-b606dba13ba84721cc297174c2eb1275bc642604.tar.xz
Remove the SmallVector ctor that converts from a SmallVectorImpl. This
conversion open the door for many nasty implicit conversion issues, and can be easily solved by initializing with (V.begin(), V.end()) when needed. This patch includes many small cleanups for sdisel also. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50340 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/SmallVector.h')
-rw-r--r--include/llvm/ADT/SmallVector.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h
index 7e0eab194d..6d279725ad 100644
--- a/include/llvm/ADT/SmallVector.h
+++ b/include/llvm/ADT/SmallVector.h
@@ -491,16 +491,11 @@ public:
operator=(RHS);
}
- SmallVector(const SmallVectorImpl<T> &RHS)
- : SmallVectorImpl<T>(NumTsAvailable) {
- if (!RHS.empty())
- operator=(RHS);
- }
-
const SmallVector &operator=(const SmallVector &RHS) {
SmallVectorImpl<T>::operator=(RHS);
return *this;
}
+
};
} // End llvm namespace