diff options
author | Eric Christopher <echristo@apple.com> | 2011-06-03 22:09:12 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-06-03 22:09:12 +0000 |
commit | ec281c8934a8400ad0da100cd4afd8abcb913d09 (patch) | |
tree | f5c3e525d10be46c4f53228adcf923c85f615707 /lib | |
parent | ce8671c6127aafc819137f2e4dd067567187129b (diff) | |
download | external_llvm-ec281c8934a8400ad0da100cd4afd8abcb913d09.zip external_llvm-ec281c8934a8400ad0da100cd4afd8abcb913d09.tar.gz external_llvm-ec281c8934a8400ad0da100cd4afd8abcb913d09.tar.bz2 |
Another possible bug. Stopgap until we can autogenerate tables and
constraint lengths.
Part of rdar://9037836 and rdar://9119939
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/InlineAsm.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/VMCore/InlineAsm.cpp b/lib/VMCore/InlineAsm.cpp index c4e065d..bd3667d 100644 --- a/lib/VMCore/InlineAsm.cpp +++ b/lib/VMCore/InlineAsm.cpp @@ -183,12 +183,9 @@ bool InlineAsm::ConstraintInfo::Parse(StringRef Str, ++I; } else if (*I == '^') { // 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; - while (I != E && isalpha(*I)) - ++I; - pCodes->push_back(std::string(ConStart, I)); + // FIXME: For now assuming these are 2-character constraints. + pCodes->push_back(std::string(I+1, I+3)); + I += 3; } else { // Single letter constraint. pCodes->push_back(std::string(I, I+1)); |