diff --git a/lib/Support/StringRef.cpp b/lib/Support/StringRef.cpp index 0227b9c2190..44e73254035 100644 --- a/lib/Support/StringRef.cpp +++ b/lib/Support/StringRef.cpp @@ -241,7 +241,7 @@ void StringRef::split(SmallVectorImpl &A, ++splits) { std::pair p = rest.split(Separators); - if (p.first.size() != 0 || KeepEmpty) + if (KeepEmpty || p.first.size() != 0) A.push_back(p.first); rest = p.second; }