From 36250ad632a5a2611919413c1a00a1b9f338fc85 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 12 May 2014 05:36:57 +0000 Subject: [C++11] Use 'nullptr'. AST edition. llvm-svn: 208517 --- clang/lib/AST/ExprClassification.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'clang/lib/AST/ExprClassification.cpp') diff --git a/clang/lib/AST/ExprClassification.cpp b/clang/lib/AST/ExprClassification.cpp index 55b9f13b291..d3d25308a38 100644 --- a/clang/lib/AST/ExprClassification.cpp +++ b/clang/lib/AST/ExprClassification.cpp @@ -549,8 +549,8 @@ static Cl::Kinds ClassifyConditional(ASTContext &Ctx, const Expr *True, // category of the other. bool TrueIsThrow = isa(True->IgnoreParenImpCasts()); bool FalseIsThrow = isa(False->IgnoreParenImpCasts()); - if (const Expr *NonThrow = TrueIsThrow ? (FalseIsThrow ? 0 : False) - : (FalseIsThrow ? True : 0)) + if (const Expr *NonThrow = TrueIsThrow ? (FalseIsThrow ? nullptr : False) + : (FalseIsThrow ? True : nullptr)) return ClassifyInternal(Ctx, NonThrow); // [Otherwise] the result [...] is a prvalue. @@ -593,7 +593,8 @@ static Cl::ModifiableType IsModifiable(ASTContext &Ctx, const Expr *E, // Assignment to a property in ObjC is an implicit setter access. But a // setter might not exist. if (const ObjCPropertyRefExpr *Expr = dyn_cast(E)) { - if (Expr->isImplicitProperty() && Expr->getImplicitPropertySetter() == 0) + if (Expr->isImplicitProperty() && + Expr->getImplicitPropertySetter() == nullptr) return Cl::CM_NoSetterProperty; } -- cgit v1.2.3