From 0c5d7448d8d80c4cc7e7844c3d922439c4f9b2ec Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sat, 30 Jan 2010 20:48:08 +0000 Subject: [PATCH] Fix thinko. llvm-svn: 94922 --- clang/lib/AST/Stmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp index 5e4de1a17867..28f7371b09db 100644 --- a/clang/lib/AST/Stmt.cpp +++ b/clang/lib/AST/Stmt.cpp @@ -310,7 +310,7 @@ unsigned AsmStmt::AnalyzeAsmString(llvm::SmallVectorImpl&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) {