mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 17:32:36 +00:00
Workaround a miscompilation by gcc-4.3 that showed up as a failure
of the StringRef.Split2 unittest on 32 bit machines. llvm-svn: 151358
This commit is contained in:
parent
04735e1180
commit
4c85da8a2a
@ -241,7 +241,7 @@ void StringRef::split(SmallVectorImpl<StringRef> &A,
|
|||||||
++splits) {
|
++splits) {
|
||||||
std::pair<StringRef, StringRef> p = rest.split(Separators);
|
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);
|
A.push_back(p.first);
|
||||||
rest = p.second;
|
rest = p.second;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user