From 843e9be8fc10c6ffb30218c5a826aab192a31955 Mon Sep 17 00:00:00 2001 From: Daniel Schemmel Date: Sun, 20 May 2018 16:03:51 +0200 Subject: isLSB should be a boolean, as it is only used in truth contexts --- lib/Expr/ExprPPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Expr') diff --git a/lib/Expr/ExprPPrinter.cpp b/lib/Expr/ExprPPrinter.cpp index 1682d9b5..58b8de7c 100644 --- a/lib/Expr/ExprPPrinter.cpp +++ b/lib/Expr/ExprPPrinter.cpp @@ -380,7 +380,7 @@ public: // a declaration. if (PCMultibyteReads && e->getKind() == Expr::Concat) { const ReadExpr *base = hasOrderedReads(e, -1); - int isLSB = (base != NULL); + const bool isLSB = (base != nullptr); if (!isLSB) base = hasOrderedReads(e, 1); if (base) { -- cgit 1.4.1