Change (!ptr != 0) to (!ptr) to make the code more readable.

No functional change.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165811 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Richard Trieu 2012-10-12 17:48:40 +00:00
Родитель f4deaef8b8
Коммит 47fcbba7c8
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1022,7 +1022,7 @@ static bool ShouldTryAgainWithRedefinitionType(Sema &S, ExprResult &base) {
// Do the substitution as long as the redefinition type isn't just a
// possibly-qualified pointer to builtin-id or builtin-Class again.
opty = redef->getAs<ObjCObjectPointerType>();
if (opty && !opty->getObjectType()->getInterface() != 0)
if (opty && !opty->getObjectType()->getInterface())
return false;
base = S.ImpCastExprToType(base.take(), redef, CK_BitCast);