aboutsummaryrefslogtreecommitdiffstats
path: root/include
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
commit622811e23626f12f8f9933b12077b8bd79394db1 (patch)
tree8250f58b3a152a503b074f21a42004cf24badde8 /include
parentf1162bbd7741177184d169ee63ddb0e54519aa2c (diff)
downloadexternal_llvm-622811e23626f12f8f9933b12077b8bd79394db1.zip
external_llvm-622811e23626f12f8f9933b12077b8bd79394db1.tar.gz
external_llvm-622811e23626f12f8f9933b12077b8bd79394db1.tar.bz2
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')
-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 7e0eab1..6d27972 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