[ADT] Add a single-character version of the small vector split routine
[oota-llvm.git] / lib / Support / Triple.cpp
index c1e68cac2f5af3c23f8b89da77ac944ab112ad41..dfe719d1f113b100aa5959e201d8da5560a633a6 100644 (file)
@@ -624,7 +624,7 @@ std::string Triple::normalize(StringRef Str) {
 
   // Parse into components.
   SmallVector<StringRef, 4> Components;
-  Str.split(Components, "-");
+  Str.split(Components, '-');
 
   // If the first component corresponds to a known architecture, preferentially
   // use it for the architecture.  If the second component corresponds to a