diff --git a/llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp b/llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp index 4c2349f9ee4b..b3c435e85c7a 100644 --- a/llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp +++ b/llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp @@ -88,7 +88,7 @@ std::string PIC16TargetObjectFile::getNameForFunctFrame(const Function *F, if (F->hasSection()) { std::string Sectn = F->getSection(); std::string StrToFind = "Overlay="; - unsigned Pos = Sectn.find(StrToFind); + size_t Pos = Sectn.find(StrToFind); if (Pos != std::string::npos) { Pos += StrToFind.length(); std::string Color = "";