[llvm] e6cd3ef - Fix -Wsign-compare issue in MasmParser.cpp
Eric Astor via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 4 12:43:38 PST 2020
Author: Eric Astor
Date: 2020-11-04T15:43:18-05:00
New Revision: e6cd3eff17fdcfd23f3aad1aea2c99a26f62ac46
URL: https://github.com/llvm/llvm-project/commit/e6cd3eff17fdcfd23f3aad1aea2c99a26f62ac46
DIFF: https://github.com/llvm/llvm-project/commit/e6cd3eff17fdcfd23f3aad1aea2c99a26f62ac46.diff
LOG: Fix -Wsign-compare issue in MasmParser.cpp
Added:
Modified:
llvm/lib/MC/MCParser/MasmParser.cpp
Removed:
################################################################################
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.
More information about the llvm-commits
mailing list