Skip to content
Snippets Groups Projects
Commit 5aaf677a authored by Benjamin Kramer's avatar Benjamin Kramer
Browse files

Reduce string trashing.

llvm-svn: 109386
parent a3f7dcd0
No related branches found
No related tags found
No related merge requests found
...@@ -164,7 +164,7 @@ InlineAsm::ParseConstraints(StringRef Constraints) { ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment