mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
Reduce string trashing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109386 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -164,7 +164,7 @@ InlineAsm::ParseConstraints(StringRef Constraints) {
|
|||||||
StringRef::iterator ConstraintEnd = std::find(I, E, ',');
|
StringRef::iterator ConstraintEnd = std::find(I, E, ',');
|
||||||
|
|
||||||
if (ConstraintEnd == I || // Empty constraint like ",,"
|
if (ConstraintEnd == I || // Empty constraint like ",,"
|
||||||
Info.Parse(std::string(I, ConstraintEnd), Result)) {
|
Info.Parse(StringRef(I, ConstraintEnd-I), Result)) {
|
||||||
Result.clear(); // Erroneous constraint?
|
Result.clear(); // Erroneous constraint?
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user