Fix thinko.

llvm-svn: 94922
This commit is contained in:
Anders Carlsson 2010-01-30 20:48:08 +00:00
parent 66de081f39
commit 0c5d7448d8
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ unsigned AsmStmt::AnalyzeAsmString(llvm::SmallVectorImpl<AsmStringPiece>&Pieces,
if (NameEnd == CurPtr)
return diag::err_asm_empty_symbolic_operand_name;
llvm::StringRef SymbolicName(CurPtr, NameEnd - CurPtr - 1);
llvm::StringRef SymbolicName(CurPtr, NameEnd - CurPtr);
int N = getNamedOperand(SymbolicName);
if (N == -1) {