mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-12 02:47:10 +00:00
Use std::string::size_type for for ColonPos to stop gcc from giving a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8811 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
01ed1c0846
commit
b5c1af4773
@ -125,7 +125,7 @@ void DSGC::verify(const DSGraph &G) {
|
|||||||
|
|
||||||
for (cl::list<std::string>::iterator I = CheckFlags.begin(),
|
for (cl::list<std::string>::iterator I = CheckFlags.begin(),
|
||||||
E = CheckFlags.end(); I != E; ++I) {
|
E = CheckFlags.end(); I != E; ++I) {
|
||||||
unsigned ColonPos = I->rfind(':');
|
std::string::size_type ColonPos = I->rfind(':');
|
||||||
if (ColonPos == std::string::npos) {
|
if (ColonPos == std::string::npos) {
|
||||||
std::cerr << "Error: '" << *I
|
std::cerr << "Error: '" << *I
|
||||||
<< "' is an invalid value for the --dsgc-check-flags option!\n";
|
<< "' is an invalid value for the --dsgc-check-flags option!\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user