summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/SubtargetFeature.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-08-11 02:21:32 +0000
committerHans Wennborg <hans@hanshq.net>2014-08-11 02:21:32 +0000
commit4fa2fd12caac7b017d47cd33b1b5d5eeb3ea41c4 (patch)
treed8c9718b0132c9623e0ed3f344a99bc5c3f04c10 /llvm/lib/MC/SubtargetFeature.cpp
parent12b996da8841285648af545b19c9e04756414651 (diff)
downloadbcm5719-llvm-4fa2fd12caac7b017d47cd33b1b5d5eeb3ea41c4.tar.gz
bcm5719-llvm-4fa2fd12caac7b017d47cd33b1b5d5eeb3ea41c4.zip
SubTargetFeature.cpp: it seems the size of this SmallVector should be 3
because some subtarget feature strings have three components. llvm-svn: 215339
Diffstat (limited to 'llvm/lib/MC/SubtargetFeature.cpp')
-rw-r--r--llvm/lib/MC/SubtargetFeature.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/SubtargetFeature.cpp b/llvm/lib/MC/SubtargetFeature.cpp
index 27525c7f129..e8ed28e6277 100644
--- a/llvm/lib/MC/SubtargetFeature.cpp
+++ b/llvm/lib/MC/SubtargetFeature.cpp
@@ -54,7 +54,7 @@ static inline bool isEnabled(const StringRef Feature) {
/// Split - Splits a string of comma separated items in to a vector of strings.
///
static void Split(std::vector<std::string> &V, const StringRef S) {
- SmallVector<StringRef, 2> Tmp;
+ SmallVector<StringRef, 3> Tmp;
S.split(Tmp, ",", -1, false /* KeepEmpty */);
V.assign(Tmp.begin(), Tmp.end());
}
OpenPOWER on IntegriCloud