error: invalid operands to binary expression ('llvm::APSInt' and 'int')

Change-Id: I1a509ce133954a31a504dcc178687427f85f4c1c
This commit is contained in:
Noel Grandin
2015-06-25 13:48:11 +02:00
parent 25603e0797
commit 38ea4f018e

View File

@@ -1191,7 +1191,7 @@ void StringConstant::handleOUStringCtor(
&& e3->getArg(0)->IgnoreParenImpCasts()->isIntegerConstantExpr(
res, compiler.getASTContext()))
{
if (res > 0 && res <= 127) {
if (res > static_cast<APSInt>(0) && res <= static_cast<APSInt>(127)) {
report(
DiagnosticsEngine::Warning,
("in call of %0, replace OUString constructed from a (non-NUL)"