projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cda9706
)
Fix a problem noticed by gcc-4.4:
author
Duncan Sands
<baldrick@free.fr>
Fri, 21 Aug 2009 17:16:10 +0000
(17:16 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Fri, 21 Aug 2009 17:16:10 +0000
(17:16 +0000)
warning: comparison is always true due to limited range of data type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79642
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PIC16/PIC16TargetObjectFile.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PIC16/PIC16TargetObjectFile.cpp
b/lib/Target/PIC16/PIC16TargetObjectFile.cpp
index 4c2349f9ee4bd0cc9630cf176492c0b33957b42e..b3c435e85c7ae7293ab95a819af70000cb9b9437 100644
(file)
--- a/
lib/Target/PIC16/PIC16TargetObjectFile.cpp
+++ b/
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 = "";