aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/StringRef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/StringRef.cpp')
-rw-r--r--lib/Support/StringRef.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/StringRef.cpp b/lib/Support/StringRef.cpp
index 0227b9c219..44e7325403 100644
--- a/lib/Support/StringRef.cpp
+++ b/lib/Support/StringRef.cpp
@@ -241,7 +241,7 @@ void StringRef::split(SmallVectorImpl<StringRef> &A,
++splits) {
std::pair<StringRef, StringRef> p = rest.split(Separators);
- if (p.first.size() != 0 || KeepEmpty)
+ if (KeepEmpty || p.first.size() != 0)
A.push_back(p.first);
rest = p.second;
}