[PATCH] [LLParser] Fix incorrect error reporting
Noam Preil via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 24 09:21:04 PST 2020
---
llvm/lib/AsmParser/LLParser.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 096fa6a9a5b..8f8f3ce944a 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -555,7 +555,7 @@ bool LLParser::ParseUnnamedGlobal() {
// Handle the GlobalID form.
if (Lex.getKind() == lltok::GlobalID) {
if (Lex.getUIntVal() != VarID)
- return Error(Lex.getLoc(), "variable expected to be numbered '%" +
+ return Error(Lex.getLoc(), "variable expected to be numbered '@" +
Twine(VarID) + "'");
Lex.Lex(); // eat GlobalID;
--
2.25.1
More information about the llvm-commits
mailing list