Fix warning. [-Wunused-variable]

llvm-svn: 168792
This commit is contained in:
Patrik Hägglund 2012-11-28 14:32:52 +00:00
parent b476cdfde5
commit 504f4783ed
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ static unsigned getInt(StringRef R) {
if (R.empty())
return 0;
unsigned Result;
bool error = R.getAsInteger(10, Result);
bool error = R.getAsInteger(10, Result); (void)error;
assert(!error && "not a number, or does not fit in an unsigned int");
return Result;
}