summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-08-21 17:16:10 +0000
committerDuncan Sands <baldrick@free.fr>2009-08-21 17:16:10 +0000
commit08b437d600d1af223d6af57d71a7fba032d1e9ac (patch)
tree33ad9d902fde60748c0656951a85e5e6f27967ee /llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp
parent3ede522ca9e44839fbb295efe0579ef354b73eae (diff)
downloadbcm5719-llvm-08b437d600d1af223d6af57d71a7fba032d1e9ac.tar.gz
bcm5719-llvm-08b437d600d1af223d6af57d71a7fba032d1e9ac.zip
Fix a problem noticed by gcc-4.4:
warning: comparison is always true due to limited range of data type. llvm-svn: 79642
Diffstat (limited to 'llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp')
-rw-r--r--llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp b/llvm/lib/Target/PIC16/PIC16TargetObjectFile.cpp
index 4c2349f9ee4..b3c435e85c7 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 = "";
OpenPOWER on IntegriCloud