From e6cd3eff17fdcfd23f3aad1aea2c99a26f62ac46 Mon Sep 17 00:00:00 2001 From: Eric Astor Date: Wed, 4 Nov 2020 15:43:18 -0500 Subject: [PATCH] Fix -Wsign-compare issue in MasmParser.cpp --- llvm/lib/MC/MCParser/MasmParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/MC/MCParser/MasmParser.cpp b/llvm/lib/MC/MCParser/MasmParser.cpp index d07bbd105ae3..845a3cf13d2b 100644 --- a/llvm/lib/MC/MCParser/MasmParser.cpp +++ b/llvm/lib/MC/MCParser/MasmParser.cpp @@ -3089,7 +3089,7 @@ bool MasmParser::parseEscapedString(std::string &Data) { char Quote = getTok().getString().front(); StringRef Str = getTok().getStringContents(); Data.reserve(Str.size()); - for (int i = 0, e = Str.size(); i != e; ++i) { + for (size_t i = 0, e = Str.size(); i != e; ++i) { Data.push_back(Str[i]); if (Str[i] == Quote) { // MASM treats doubled delimiting quotes as an escaped delimiting quote.