summaryrefslogtreecommitdiff
path: root/lib/VMCore
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-06-03 20:44:52 +0000
committerEric Christopher <echristo@apple.com>2011-06-03 20:44:52 +0000
commitce1ecf59c80db0ff922e599e4334258f9fa65783 (patch)
tree05539d0934f9d4744fd6c706612278014cd4b32d /lib/VMCore
parentc3526c778efc0910c81cbc9ba1e9362d3c4094c3 (diff)
downloadllvm-ce1ecf59c80db0ff922e599e4334258f9fa65783.tar.gz
llvm-ce1ecf59c80db0ff922e599e4334258f9fa65783.tar.bz2
llvm-ce1ecf59c80db0ff922e599e4334258f9fa65783.tar.xz
Fix an off by one error.
Part of rdar://9037836 and rdar://9119939 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132590 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/InlineAsm.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VMCore/InlineAsm.cpp b/lib/VMCore/InlineAsm.cpp
index 70d0e3881e..c4e065df05 100644
--- a/lib/VMCore/InlineAsm.cpp
+++ b/lib/VMCore/InlineAsm.cpp
@@ -185,11 +185,10 @@ bool InlineAsm::ConstraintInfo::Parse(StringRef Str,
// Multi-letter constraint
// These will only occur with the existing multiple alternative
// constraints and so we can use the isalpha loop below.
- StringRef::iterator ConStart = I;
+ StringRef::iterator ConStart = ++I;
while (I != E && isalpha(*I))
++I;
pCodes->push_back(std::string(ConStart, I));
- ++I;
} else {
// Single letter constraint.
pCodes->push_back(std::string(I, I+1));