mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-11 10:25:41 +00:00
Workaround a miscompilation by gcc-4.3 that showed up as a failure
of the StringRef.Split2 unittest on 32 bit machines. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151358 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user