зеркало из https://github.com/microsoft/clang-1.git
fix warning in no-assert mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65024 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
1c17689a67
Коммит
8a778d6c95
|
@ -71,9 +71,7 @@ Builtin::Context::isPrintfLike(unsigned ID, unsigned &FormatIdx,
|
|||
assert(*Printf == ':' && "p or P specifier must have be followed by a ':'");
|
||||
++Printf;
|
||||
|
||||
const char *PrintfEnd = strchr(Printf, ':');
|
||||
assert(PrintfEnd && "printf specifier must end with a ':'");
|
||||
|
||||
assert(strchr(Printf, ':') && "printf specifier must end with a ':'");
|
||||
FormatIdx = strtol(Printf, 0, 10);
|
||||
return true;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче