Trivial style fix.

llvm-svn: 58689
This commit is contained in:
Sebastian Redl 2008-11-04 11:45:54 +00:00
parent 9340be4641
commit 273ce56d7a
1 changed files with 1 additions and 1 deletions

View File

@ -1074,7 +1074,7 @@ bool Expr::isIntegerConstantExpr(llvm::APSInt &Result, ASTContext &Ctx,
bool Expr::isNullPointerConstant(ASTContext &Ctx) const {
// Strip off a cast to void*, if it exists. Except in C++.
if (const ExplicitCastExpr *CE = dyn_cast<ExplicitCastExpr>(this)) {
if(!Ctx.getLangOptions().CPlusPlus) {
if (!Ctx.getLangOptions().CPlusPlus) {
// Check that it is a cast to void*.
if (const PointerType *PT = CE->getType()->getAsPointerType()) {
QualType Pointee = PT->getPointeeType();