[polly] r256124 - Compile fix: Use "&&" operator instead of "and"

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 20 06:42:32 PST 2015


Author: meinersbur
Date: Sun Dec 20 08:42:32 2015
New Revision: 256124

URL: http://llvm.org/viewvc/llvm-project?rev=256124&view=rev
Log:
Compile fix: Use "&&" operator instead of "and"

Modified:
    polly/trunk/lib/Analysis/ScopDetection.cpp

Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=256124&r1=256123&r2=256124&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Sun Dec 20 08:42:32 2015
@@ -524,7 +524,7 @@ public:
   const SCEV *visitUDivExpr(const SCEVUDivExpr *Expr) { return Expr; }
 
   const SCEV *visitSMaxExpr(const SCEVSMaxExpr *Expr) {
-    if ((Expr->getNumOperands() == 2) and Expr->getOperand(0)->isZero()) {
+    if ((Expr->getNumOperands() == 2) && Expr->getOperand(0)->isZero()) {
       auto Res = visit(Expr->getOperand(1));
       if (Terms)
         (*Terms).push_back(Res);




More information about the llvm-commits mailing list