[llvm] r338078 - Fix -Wsign-compare warning.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 26 15:24:01 PDT 2018
Author: zturner
Date: Thu Jul 26 15:24:01 2018
New Revision: 338078
URL: http://llvm.org/viewvc/llvm-project?rev=338078&view=rev
Log:
Fix -Wsign-compare warning.
Modified:
llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp
Modified: llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp?rev=338078&r1=338077&r2=338078&view=diff
==============================================================================
--- llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp (original)
+++ llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp Thu Jul 26 15:24:01 2018
@@ -1571,7 +1571,7 @@ ParamList Demangler::demangleFunctionPar
!MangledName.startsWith('Z')) {
if (startsWithDigit(MangledName)) {
- int N = MangledName[0] - '0';
+ size_t N = MangledName[0] - '0';
if (N >= FunctionParamBackRefCount) {
Error = true;
return {};
More information about the llvm-commits
mailing list