forked from OSchip/llvm-project
parent
66de081f39
commit
0c5d7448d8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue